Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/wp-helper/helper_adminpanel.php+281
Declaration of ah_posts_Table::prepare_items($posts) should be compatible with WP_List_Table::prepare_items()
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.40ms] Passed 4 tests
Server-side resources used by WP Helper
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.99 ▼38.03 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.02 ▼47.93 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 4.67 ▼43.89 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.91 ▼95.75 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.20 ▼29.93 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Helper
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 13.05 ▼1.66 | 4.37 ▲2.42 | 38.67 ▼6.24 |
Dashboard /wp-admin | 2,218 ▲41 | 5.76 ▲0.09 | 89.01 ▼3.53 | 36.69 ▼3.38 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.26 ▲0.25 | 36.90 ▼4.72 | 33.73 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 23.13 ▲0.24 | 610.27 ▼7.58 | 69.91 ▼1.79 |
Media Library /wp-admin/upload.php | 1,426 ▲32 | 4.38 ▲0.07 | 100.27 ▲1.29 | 42.86 ▲1.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/wp-helper/helper_adminpanel.php+281
Declaration of ah_posts_Table::prepare_items($posts) should be compatible with WP_List_Table::prepare_items()
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-helper/helper_basic.php:553
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: posttype, attachement, framework, plugins
wp-helper/helper_attachment.php 92% from 13 tests
The main PHP script in "WP Helper" version 0.9 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-helper.php" instead of "helper_attachment.php")
Code Analysis Passed 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
There were no executable files found in this plugin1,346 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 353 | 257 | 1,299 |
JavaScript | 1 | 4 | 2 | 24 |
CSS | 1 | 6 | 1 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 66 | |
▷ Named functions | 66 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
PNG images were not found in this plugin