Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.29MB] [CPU: ▲4.66ms] Passed 4 tests
Server-side resources used by W4 Post List
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.74 ▲1.28 | 50.71 ▲8.50 |
Dashboard /wp-admin | 4.62 ▲1.32 | 53.18 ▲3.57 |
Posts /wp-admin/edit.php | 4.67 ▲1.32 | 57.03 ▲7.99 |
Add New Post /wp-admin/post-new.php | 7.22 ▲1.33 | 101.23 ▼1.43 |
Media Library /wp-admin/upload.php | 4.48 ▲1.25 | 43.81 ▲9.93 |
All Lists /wp-admin/edit.php?post_type=w4pl | 4.59 | 49.92 |
Documentation /wp-admin/edit.php?post_type=w4pl&page=w4pl-docs | 4.45 | 38.69 |
Add New /wp-admin/post-new.php?post_type=w4pl | 4.67 | 57.29 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_w4_post_list |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by W4 Post List
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.10 ▼0.51 | 1.93 ▲0.46 | 44.93 ▲0.77 |
Dashboard /wp-admin | 2,223 ▲43 | 5.61 ▼0.12 | 87.18 ▲1.33 | 39.67 ▼3.97 |
Posts /wp-admin/edit.php | 2,128 ▲25 | 2.00 ▲0.02 | 41.09 ▲3.06 | 36.70 ▲5.57 |
Add New Post /wp-admin/post-new.php | 6,213 ▲4,687 | 26.17 ▲2.98 | 895.90 ▲277.99 | 62.25 ▲16.56 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.26 ▲0.08 | 108.16 ▲9.69 | 45.79 ▲4.79 |
All Lists /wp-admin/edit.php?post_type=w4pl | 1,108 | 1.97 | 30.43 | 30.54 |
Documentation /wp-admin/edit.php?post_type=w4pl&page=w4pl-docs | 930 | 2.11 | 21.83 | 35.83 |
Add New /wp-admin/post-new.php?post_type=w4pl | 2,731 | 5.04 | 96.82 | 52.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_w4_post_list
- db_upgraded
- widget_recent-comments
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
Even though no errors were found, 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
Almost there! Just fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/w4-post-list/admin/pages/views/html-template-examples.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/w4-post-list/admin/pages/views/html-plugin-updates.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/w4-post-list/admin/views/html-list-edit-form.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/w4-post-list/admin/pages/views/html-template-tags.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/w4-post-list/appsero.php:92
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/w4-post-list/admin/pages/views/html-plugin-links.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/w4-post-list/admin/pages/views/html-usage.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
7 plugin tags: post, custom post type, shortcode, widget, post list...
w4-post-list/w4-post-list.php 85% from 13 tests
Analyzing the main PHP file in "W4 Post List" version 2.4.7
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 191 characters long)
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "5.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin9,687 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 1,559 | 2,562 | 8,191 |
CSS | 6 | 0 | 26 | 547 |
JavaScript | 5 | 104 | 72 | 518 |
Markdown | 1 | 82 | 0 | 255 |
XML | 1 | 5 | 11 | 99 |
JSON | 2 | 0 | 0 | 77 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 22.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 1 | 2.33% |
Methods | 355 | |
▷ Static methods | 104 | 29.30% |
▷ Public methods | 314 | 88.45% |
▷ Protected methods | 7 | 1.97% |
▷ Private methods | 34 | 9.58% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin