Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/advanced-featured-page-widget/advanced-featured-page-widget.php+349
Function create_function() is deprecated
Server metrics [RAM: ▼1.83MB] [CPU: ▼52.77ms] Passed 4 tests
A check of server-side resources used by Advanced Featured Page Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 5.18 ▼35.72 |
Dashboard /wp-admin | 2.18 ▼1.13 | 8.36 ▼47.03 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 7.00 ▼41.21 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 7.88 ▼87.11 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 7.32 ▼26.02 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_advanced-featured-page-widget |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Featured Page Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.27 ▼1.12 | 1.74 ▼0.37 | 43.83 ▲2.53 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.95 | 99.32 ▼3.68 | 38.89 ▼10.14 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.03 | 34.43 ▼4.45 | 31.57 ▼4.19 |
Add New Post /wp-admin/post-new.php | 1,520 ▲6 | 23.02 ▲5.34 | 611.88 ▼36.32 | 54.41 ▲6.32 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.16 ▼0.06 | 95.99 ▼3.01 | 42.99 ▼0.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/advanced-featured-page-widget/advanced-featured-page-widget.php+349
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_advanced-featured-page-widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-featured-page-widget/advanced-featured-page-widget.php:15
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: featured post widget, featured page widget, featured post, featured page, widget...
advanced-featured-page-widget/advanced-featured-page-widget.php Passed 13 tests
The main PHP file in "Advanced Featured Page Widget" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Add a featured page in the sidebar using a widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin221 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 68 | 61 | 221 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 6 | |
▷ Named functions | 6 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.05MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 42.79KB | 41.79KB | ▼ 2.34% |
screenshot-1.png | 5.60KB | 5.27KB | ▼ 5.88% |