Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/advanced-featured-post-widget/class-lib/AFPW_WidgetClass.php+446
Function create_function() is deprecated
Server metrics [RAM: ▼1.39MB] [CPU: ▼51.22ms] Passed 4 tests
A check of server-side resources used by Advanced Featured Post Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.59 ▼0.87 | 8.50 ▼34.96 |
Dashboard /wp-admin | 2.61 ▼0.69 | 9.68 ▼46.79 |
Posts /wp-admin/edit.php | 2.61 ▼0.74 | 12.04 ▼38.98 |
Add New Post /wp-admin/post-new.php | 2.61 ▼3.27 | 10.62 ▼84.13 |
Media Library /wp-admin/upload.php | 2.61 ▼0.61 | 12.54 ▼26.71 |
Advanced Featured Post Widget /wp-admin/options-general.php?page=advanced-fpw-settings | 2.62 | 12.62 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
afpw_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_advanced_featured_post_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Featured Post Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲35 | 14.11 ▼0.42 | 1.90 ▲0.12 | 41.60 ▼9.43 |
Dashboard /wp-admin | 2,214 ▲34 | 5.57 ▼0.08 | 85.95 ▼1.01 | 73.50 ▲31.82 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 1.95 ▼0.08 | 38.87 ▼2.60 | 35.78 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,698 ▲172 | 22.23 ▼1.01 | 765.18 ▲62.72 | 58.51 ▲2.13 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.23 ▼0.05 | 128.98 ▲10.95 | 82.74 ▲34.70 |
Advanced Featured Post Widget /wp-admin/options-general.php?page=advanced-fpw-settings | 1,089 | 4.72 | 60.99 | 58.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/advanced-featured-post-widget/class-lib/AFPW_WidgetClass.php+446
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_advanced_featured_post_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=advanced-fpw-settings
- > Deprecated in wp-content/plugins/advanced-featured-post-widget/class-lib/AFPW_WidgetClass.php+446
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=advanced-fpw-settings
- > Notice in wp-content/plugins/advanced-featured-post-widget/class-lib/AFPW_AdminClass.php+158
Undefined index: link
- > GET request to /wp-admin/options-general.php?page=advanced-fpw-settings
- > Notice in wp-content/plugins/advanced-featured-post-widget/class-lib/AFPW_AdminClass.php+164
Undefined index: hover
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'A5_OptionPage' not found in wp-content/plugins/advanced-featured-post-widget/class-lib/AFPW_AdminClass.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-featured-post-widget/class-lib/A5_WidgetClass.php:14
- > PHP Fatal error
Uncaught Error: Class 'A5_DynamicFiles' not found in wp-content/plugins/advanced-featured-post-widget/class-lib/AFPW_DynamicCSSClass.php:13
- > PHP Fatal error
Uncaught Error: Class 'A5_Widget' not found in wp-content/plugins/advanced-featured-post-widget/class-lib/AFPW_WidgetClass.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=advanced-fpw-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/advanced-featured-post-widget/ta-expander.js?ver=3.0:236:27)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=advanced-fpw-settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: featured, post, sidebar, newspaper, feature...
advanced-featured-post-widget/advanced-fpw.php 77% from 13 tests
The main PHP file in "Advanced Featured Post Widget" ver. 3.5.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-featured-post-widget.php" instead of "advanced-fpw.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 357 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,819 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 1,445 | 529 | 1,831 |
PO File | 3 | 248 | 260 | 814 |
JavaScript | 2 | 69 | 19 | 174 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 36 | 37.89% |
▷ Public methods | 86 | 90.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 9.47% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
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/a5-icon-11.png | 0.67KB | 0.42KB | ▼ 37.17% |
img/a5-icon-34.png | 1.65KB | 1.35KB | ▼ 18.07% |