Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/client-power-tools/client-power-tools.php+138
Undefined variable: wp_error
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.52ms] Passed 4 tests
An overview of server-side resources used by Client Power Tools
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.01 ▼1.43 |
Dashboard /wp-admin | 3.50 ▲0.19 | 45.80 ▼0.71 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 50.67 ▲2.72 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 93.33 ▼2.07 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.70 ▼5.86 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 21 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
cpt_default_client_status |
cpt_status_update_req_freq |
cpt_client_statuses |
theysaidso_admin_options |
widget_recent-posts |
cpt_project_statuses |
cpt_projects_label |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Client Power Tools
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲203 | 13.54 ▼0.76 | 8.93 ▲7.43 | 41.35 ▲0.14 |
Dashboard /wp-admin | 2,245 ▲68 | 5.63 ▲0.03 | 82.75 ▼3.04 | 73.29 ▲32.02 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.08 ▲0.05 | 39.61 ▲3.90 | 34.93 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,577 ▲51 | 23.14 ▼0.19 | 636.99 ▼39.31 | 34.31 ▼16.39 |
Media Library /wp-admin/upload.php | 1,462 ▲65 | 4.20 ▼0.02 | 94.25 ▼8.06 | 67.89 ▲22.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 21 options in the database
- cpt_module_projects
- cpt_client_statuses
- cpt_status_update_req_freq
- cpt_default_client_status
- can_compress_scripts
- widget_recent-posts
- cpt_module_status_update_req_button
- cpt_status_update_req_notice_email
- cpt_client_dashboard_page_selection
- cpt_new_client_email_message_body
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 27× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Client_Power_Tools\\Core\\Includes\\WP_List_Table' not found in wp-content/plugins/client-power-tools/admin/cpt-client-manager-table.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function Client_Power_Tools\\Core\\Admin\\esc_url() in wp-content/plugins/client-power-tools/admin/cpt-new-project-type-form.php:5
- > PHP Fatal error
Uncaught Error: Class 'Client_Power_Tools\\Core\\Includes\\WP_List_Table' not found in wp-content/plugins/client-power-tools/admin/cpt-project-types-table.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function Client_Power_Tools\\Core\\Common\\add_action() in wp-content/plugins/client-power-tools/common/cpt-status-update-request-button.php:115
- > PHP Fatal error
Uncaught Error: Call to undefined function Client_Power_Tools\\Core\\Admin\\__() in wp-content/plugins/client-power-tools/admin/cpt-edit-project-type-form.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Client_Power_Tools\\Core\\Common\\add_action() in wp-content/plugins/client-power-tools/common/cpt-common-messages.php:187
- > PHP Fatal error
Uncaught Error: Call to undefined function Client_Power_Tools\\Core\\Admin\\add_action() in wp-content/plugins/client-power-tools/admin/cpt-client-managers.php:141
- > PHP Fatal error
Uncaught Error: Call to undefined function Client_Power_Tools\\Core\\Admin\\add_action() in wp-content/plugins/client-power-tools/admin/cpt-edit-project.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function Client_Power_Tools\\Core\\Admin\\esc_url() in wp-content/plugins/client-power-tools/admin/cpt-new-client-form.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function Client_Power_Tools\\Core\\add_shortcode() in wp-content/plugins/client-power-tools/shortcodes.php:13
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: restrict content, project management, portal, client management, frontend login
client-power-tools/client-power-tools.php 92% from 13 tests
This is the main PHP file of "Client Power Tools" version 1.8.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 179 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin6,492 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 839 | 923 | 4,796 |
Sass | 14 | 155 | 5 | 807 |
CSS | 3 | 27 | 6 | 480 |
JavaScript | 5 | 44 | 24 | 315 |
SVG | 6 | 0 | 0 | 79 |
JSON | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 34.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 77 | 78.57% |
▷ Protected methods | 21 | 21.43% |
▷ Private methods | 0 | 0.00% |
Functions | 137 | |
▷ Named functions | 136 | 99.27% |
▷ Anonymous functions | 1 | 0.73% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected