Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.89MB] [CPU: ▼51.77ms] Passed 4 tests
A check of server-side resources used by Code Quality Control Tool
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.95 ▼0.08 |
Dashboard /wp-admin | 2.05 ▼1.25 | 5.19 ▼48.23 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 4.72 ▼38.92 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.38 ▼89.25 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.25 ▼30.68 |
PHP Code Control /wp-admin/options-general.php?page=php-code-control-settings | 2.05 | 5.03 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- The plugin illegally modified 2 files (4.74KB) outside of "wp-content/plugins/code-quality-control-tool/" and "wp-content/uploads/"
- (new file) wp-content/_php_code_control.ini
- (modified) wp-config.php
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Code Quality Control Tool: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.28 ▼1.09 | 1.65 ▼0.17 | 45.87 ▲1.30 |
Dashboard /wp-admin | 2,224 ▲36 | 5.90 ▲0.99 | 100.49 ▼7.15 | 40.14 ▼2.83 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.02 ▲0.00 | 35.59 ▼1.91 | 31.18 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 22.67 ▼0.41 | 632.93 ▼35.13 | 55.81 ▼1.87 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.26 ▼0.02 | 99.45 ▲2.29 | 41.77 ▲0.78 |
PHP Code Control /wp-admin/options-general.php?page=php-code-control-settings | 1,242 | 2.06 | 23.05 | 34.34 |
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 cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the cqctphp_Load_CSS handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=php-code-control-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the cqctphp_Load_CSS handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 is_admin() in wp-content/plugins/code-quality-control-tool/code-quality-control-tool.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: error handling, debug, tools, code analyzer, error log
code-quality-control-tool/code-quality-control-tool.php Passed 13 tests
The main PHP file in "Code Quality Control Tool" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Trace all PHP error types. Creates logs file. Useful for PHP code analytics.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin743 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 191 | 43 | 720 |
CSS | 1 | 0 | 0 | 19 |
HTML | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 13 | |
▷ Static methods | 13 | 100.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/livechat.png | 14.97KB | 6.22KB | ▼ 58.43% |