Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼134.44ms] Passed 4 tests
This is a short check of server-side resources used by Custom Code Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.41 | 45.13 ▲21.19 |
Dashboard /wp-admin | 3.44 ▲0.38 | 52.74 ▲11.73 |
Posts /wp-admin/edit.php | 3.48 ▲0.38 | 51.81 ▲6.50 |
Add New Post /wp-admin/post-new.php | 5.74 ▲0.30 | 105.69 ▼552.92 |
Media Library /wp-admin/upload.php | 3.32 ▲0.31 | 36.27 ▼3.07 |
CSS code /wp-admin/admin.php?page=code/css | 3.42 | 32.21 |
JS code /wp-admin/admin.php?page=code/js | 3.42 | 35.04 |
HTML code /wp-admin/admin.php?page=code/html | 3.42 | 35.32 |
PHP code /wp-admin/admin.php?page=code/php | 3.53 | 39.92 |
Server storage [IO: ▲3.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 203 new files
Database: no new tables, 5 new options
New WordPress options |
---|
spacexchimp_p020_service_info |
spacexchimp_p006_service_info |
spacexchimp_p003_service_info |
spacexchimp_p001_service_info |
spacexchimp_p016_service_info |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Code Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,742 ▲136 | 15.83 ▲0.21 | 8.21 ▼0.50 | 46.54 ▼0.44 |
Dashboard /wp-admin | 3,009 ▲75 | 5.99 ▼0.10 | 143.20 ▼20.31 | 112.68 ▼7.40 |
Posts /wp-admin/edit.php | 2,778 ▲42 | 2.70 ▲0.00 | 67.00 ▼0.81 | 92.21 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,708 ▲36 | 18.77 ▼0.05 | 374.55 ▲4.51 | 106.42 ▼5.20 |
Media Library /wp-admin/upload.php | 1,849 ▲42 | 5.00 ▼0.00 | 153.34 ▼4.34 | 124.76 ▼14.80 |
CSS code /wp-admin/admin.php?page=code/css | 2,805 | 3.08 | 82.26 | 83.99 |
JS code /wp-admin/admin.php?page=code/js | 3,396 | 3.29 | 90.71 | 83.15 |
HTML code /wp-admin/admin.php?page=code/html | 3,425 | 3.48 | 96.35 | 103.62 |
PHP code /wp-admin/admin.php?page=code/php | 3,535 | 4.03 | 94.53 | 110.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 5 options
- spacexchimp_p016_service_info
- spacexchimp_p001_service_info
- spacexchimp_p006_service_info
- spacexchimp_p003_service_info
- spacexchimp_p020_service_info
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)
Even though no errors were found, this is by no means an exhaustive test
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
- 58× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/custom-code-manager/sub/css/inc/php/tabs/usage.php
- > /wp-content/plugins/custom-code-manager/sub/php/inc/php/functional.php
- > /wp-content/plugins/custom-code-manager/sub/css/inc/php/tabs/settings.php
- > /wp-content/plugins/custom-code-manager/inc/php/sidebar.php
- > /wp-content/plugins/custom-code-manager/sub/php/inc/php/tabs/settings.php
- > /wp-content/plugins/custom-code-manager/sub/html/inc/php/tabs/settings.php
- > /wp-content/plugins/custom-code-manager/sub/js/inc/php/core.php
- > /wp-content/plugins/custom-code-manager/sub/js/inc/php/enqueue.php
- > /wp-content/plugins/custom-code-manager/sub/php/inc/php/messages.php
- > /wp-content/plugins/custom-code-manager/sub/html/inc/php/versioning.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: You are using too many tags: 59 tag instead of maximum 10
custom-code-manager/custom-code-manager.php 92% from 13 tests
The main PHP script in "Custom Code Manager" version 1.18 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 176 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
Good job! No executable or dangerous file extensions detected32,996 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 1,494 | 1,354 | 12,526 |
PO File | 30 | 3,837 | 4,194 | 8,048 |
PHP | 58 | 870 | 1,144 | 3,869 |
SVG | 2 | 1 | 0 | 2,677 |
CSS | 8 | 162 | 282 | 2,524 |
HTML | 13 | 277 | 1 | 2,007 |
Markdown | 3 | 865 | 0 | 1,298 |
JSON | 1 | 0 | 0 | 47 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.04MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/thanks.png | 9.03KB | 9.47KB | 0.00% |
inc/img/spacexchimp-logo.png | 21.01KB | 14.98KB | ▼ 28.69% |
inc/img/upgrade.png | 9.02KB | 9.71KB | 0.00% |