Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/2046s-widget-loops/2046s_loop_widgets.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; w2046_main_loop has a deprecated constructor
Server metrics [RAM: ▼1.37MB] [CPU: ▼48.47ms] Passed 4 tests
This is a short check of server-side resources used by 2046's Loop widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.61 ▼0.84 | 6.73 ▼32.87 |
Dashboard /wp-admin | 2.63 ▼0.67 | 8.11 ▼36.92 |
Posts /wp-admin/edit.php | 2.64 ▼0.72 | 7.50 ▼39.61 |
Add New Post /wp-admin/post-new.php | 2.64 ▼3.25 | 6.26 ▼84.49 |
Media Library /wp-admin/upload.php | 2.64 ▼0.59 | 7.86 ▼26.85 |
2046's loop widget /wp-admin/options-general.php?page=options_page_slug | 2.64 | 6.65 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_wname_2046_main_loop-widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 2046's Loop widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.23 ▼1.15 | 1.74 ▼0.10 | 43.13 ▲2.47 |
Dashboard /wp-admin | 2,210 ▲22 | 5.77 ▲0.88 | 96.82 ▼17.27 | 41.00 ▼2.60 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.06 | 34.48 ▼5.25 | 32.74 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.10 ▼0.06 | 605.89 ▼45.97 | 58.45 ▼2.00 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.19 ▼0.04 | 96.13 ▼0.86 | 40.74 ▲0.14 |
2046's loop widget /wp-admin/options-general.php?page=options_page_slug | 797 | 2.02 | 25.67 | 24.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/2046s-widget-loops/2046s_loop_widgets.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; w2046_main_loop has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_wname_2046_main_loop-widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=options_page_slug
- > Deprecated in wp-content/plugins/2046s-widget-loops/2046s_loop_widgets.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; w2046_main_loop has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=options_page_slug
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in w2046_main_loop is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=options_page_slug
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=options_page_slug
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=options_page_slug
- > Notice in wp-content/plugins/2046s-widget-loops/2046s_loop_widgets.php+1415
Undefined index: w2046_options
- > GET request to /wp-admin/options-general.php?page=options_page_slug
- > Notice in wp-content/plugins/2046s-widget-loops/2046s_loop_widgets.php+1415
Trying to access array offset on value of type null
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/2046s-widget-loops/2046s_loop_widgets.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Screenshot of the version 0.241) image required
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
2046s-widget-loops/2046s_loop_widgets.php 92% from 13 tests
"2046's Loop widget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("2046s-widget-loops.php" instead of "2046s_loop_widgets.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,955 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 228 | 1,162 |
JavaScript | 2 | 132 | 149 | 463 |
PO File | 1 | 124 | 131 | 265 |
CSS | 2 | 2 | 10 | 65 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 129)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 113.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 222.00 |
Average method complexity | 29.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 129.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin