Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.11MB] [CPU: ▲25.11ms] 75% from 4 tests
A check of server-side resources used by Code Manager
The following require your attention
- Extra RAM: The extra memory usage must be under 5MB (currently 5.11MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.95 ▲5.48 | 60.82 ▲18.65 |
Dashboard /wp-admin | 8.97 ▲5.66 | 76.62 ▲24.45 |
Posts /wp-admin/edit.php | 8.97 ▲5.61 | 82.79 ▲34.12 |
Add New Post /wp-admin/post-new.php | 9.56 ▲3.67 | 121.92 ▲25.28 |
Media Library /wp-admin/upload.php | 8.97 ▲5.74 | 63.63 ▲32.05 |
Code Manager /wp-admin/options-general.php?page=code_manager_settings | 8.97 | 64.30 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.97 | 63.87 |
Server storage [IO: ▲3.48MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 262 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_code_manager |
New WordPress options |
---|
can_compress_scripts |
code_manager_version |
fs_active_plugins |
db_upgraded |
fs_accounts |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Code Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲55 | 14.59 ▲0.25 | 1.46 ▼0.47 | 28.00 ▼17.99 |
Dashboard /wp-admin | 2,229 ▲48 | 5.53 ▼0.19 | 96.50 ▼7.44 | 44.55 ▼2.34 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 1.96 ▼0.05 | 40.30 ▼3.11 | 38.22 ▲2.89 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.02 ▼0.25 | 598.86 ▼58.90 | 56.60 ▲6.49 |
Media Library /wp-admin/upload.php | 1,440 ▲43 | 4.19 ▼0.07 | 96.45 ▼1.45 | 44.23 ▲1.98 |
Code Manager /wp-admin/options-general.php?page=code_manager_settings | 1,098 | 2.45 | 43.12 | 53.33 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,102 | 1.66 | 26.67 | 27.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/code-manager/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_code_manager
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- fs_debug_mode
- code_manager_version
- can_compress_scripts
- fs_active_plugins
- widget_recent-comments
- theysaidso_admin_options
- fs_accounts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Code_Manager\\WP_List_Table' not found in wp-content/plugins/code-manager/Code_Manager/Code_Manager_List.php:18
- > PHP Fatal error
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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in code-manager/assets to your readme.txt
code-manager/code-manager.php 92% from 13 tests
"Code Manager" version 1.0.30's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin39,907 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 149 | 8,879 | 19,768 | 37,909 |
JavaScript | 9 | 153 | 100 | 1,428 |
CSS | 19 | 4 | 6 | 403 |
Markdown | 2 | 82 | 0 | 152 |
JSON | 2 | 0 | 0 | 15 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 68.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 75 | |
▷ Abstract classes | 2 | 2.67% |
▷ Concrete classes | 73 | 97.33% |
▷ Final classes | 0 | 0.00% |
Methods | 1,496 | |
▷ Static methods | 263 | 17.58% |
▷ Public methods | 1,036 | 69.25% |
▷ Protected methods | 69 | 4.61% |
▷ Private methods | 391 | 26.14% |
Functions | 113 | |
▷ Named functions | 112 | 99.12% |
▷ Anonymous functions | 1 | 0.88% |
Constants | 177 | |
▷ Global constants | 119 | 67.23% |
▷ Class constants | 58 | 32.77% |
▷ Public constants | 58 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
35 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
assets/css/images/ui-icons_222222_256x240.png | 6.86KB | 4.18KB | ▼ 39.05% |
assets/css/images/ui-icons_4b8e0b_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
assets/css/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |