Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/festat-e-shqiperise/festat.php+110
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼59.14ms] Passed 4 tests
A check of server-side resources used by Festat zyrtare të Shqipërisë
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.42 ▼37.45 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.06 ▼48.83 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.18 ▼46.58 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.51 ▼103.68 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.50 ▼30.69 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_wwwfjalaimechal |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Festat zyrtare të Shqipërisë
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.24 ▼1.17 | 2.05 ▼0.14 | 45.07 ▲2.68 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.80 | 104.42 ▼11.03 | 39.55 ▼0.73 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.04 ▲0.05 | 42.83 ▲3.07 | 36.90 ▲2.23 |
Add New Post /wp-admin/post-new.php | 1,514 ▼7 | 23.60 ▲0.18 | 654.00 ▲9.95 | 55.68 ▼5.26 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.22 ▲0.02 | 106.36 ▲3.58 | 45.33 ▼2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/festat-e-shqiperise/festat.php+110
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_wwwfjalaimechal
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/festat-e-shqiperise/festat.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Pamje nga kutizat e instaluara.), #2 (Pamja e kutizes ne faqe.)
- Requires at least: The plugin version is formatted incorrectly
- Plugin Name: You should set the name of your plugin on the first line (
=== festat-e-shqiperise ===
)
festat-e-shqiperise/festat.php 85% from 13 tests
The main file in "Festat zyrtare të Shqipërisë" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 189 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("festat-e-shqiperise.php" instead of "festat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin89 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 10 | 89 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 5.25KB | 2.83KB | ▼ 46.07% |
al.png | 27.43KB | 11.61KB | ▼ 57.68% |
screenshot-2.png | 15.99KB | 8.41KB | ▼ 47.41% |