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
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/afables/inc/afables-widget.php+4
Function create_function() is deprecated
Server metrics [RAM: ▼1.81MB] [CPU: ▼47.86ms] Passed 4 tests
A check of server-side resources used by Afables
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.29 | 5.64 ▼30.30 |
Dashboard /wp-admin | 2.20 ▼1.11 | 6.02 ▼40.35 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 8.37 ▼34.66 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 6.96 ▼86.12 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 5.96 ▼29.93 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_afables_widget |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Afables
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 15.21 ▲0.83 | 7.51 ▲5.61 | 42.85 ▼0.61 |
Dashboard /wp-admin | 2,202 ▲20 | 5.95 ▲0.09 | 114.73 ▼7.95 | 42.14 ▼3.28 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.55 ▲0.54 | 48.33 ▲12.93 | 37.01 ▲4.48 |
Add New Post /wp-admin/post-new.php | 1,672 ▲139 | 23.06 ▲0.09 | 691.85 ▲28.55 | 39.33 ▼17.39 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 5.08 ▲0.88 | 104.46 ▲0.98 | 41.00 ▼4.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/afables/inc/afables-widget.php+4
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_afables_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/afables/js/afables-widget-js.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/afables/inc/afables-install.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/afables/afables.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/afables/inc/afables-widget.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: sidebar, city, widget, afables, feed...
afables/afables.php Passed 13 tests
The main PHP script in "Afables" version 1.3.2 is automatically included on every request by WordPress
32 characters long description:
Widget para wordpress de Afables
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
Success! There were no dangerous files found in this plugin2,726 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 5 | 13 | 1,609 |
SVG | 1 | 0 | 0 | 504 |
PHP | 4 | 182 | 72 | 393 |
PO File | 2 | 50 | 4 | 158 |
JavaScript | 1 | 31 | 5 | 62 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/heart-empty.png | 1.50KB | 1.31KB | ▼ 12.95% |
img/heart-full.png | 0.97KB | 0.78KB | ▼ 19.07% |