Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.55MB] [CPU: ▼53.42ms] Passed 4 tests
An overview of server-side resources used by CMC Hook
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 45.99 ▼1.97 |
Dashboard /wp-admin | 2.40 ▼0.94 | 9.68 ▼62.57 |
Posts /wp-admin/edit.php | 2.40 ▼0.95 | 10.67 ▼42.61 |
Add New Post /wp-admin/post-new.php | 2.40 ▼3.49 | 11.22 ▼81.74 |
Media Library /wp-admin/upload.php | 2.40 ▼0.83 | 9.76 ▼26.75 |
CMC Hook /wp-admin/tools.php?page=cmc-hook | 2.42 | 10.63 |
Server storage [IO: ▲2.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 250 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_cmc_hook |
wp_cmc_hook_project |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
cmc_hook_settings |
widget_recent-posts |
Browser metrics Passed 4 tests
CMC Hook: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.21 ▼0.52 | 1.68 ▼0.20 | 48.16 ▲7.40 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.08 | 89.56 ▼13.47 | 39.00 ▼3.02 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▲0.06 | 39.27 ▲3.89 | 41.22 ▲5.60 |
Add New Post /wp-admin/post-new.php | 1,538 ▲3 | 18.25 ▲0.29 | 609.15 ▼65.84 | 60.39 ▲3.37 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.21 ▲0.01 | 94.84 ▼9.00 | 40.99 ▼3.08 |
CMC Hook /wp-admin/tools.php?page=cmc-hook | 1,408 | 3.20 | 47.45 | 28.86 |
Uninstaller [IO: ▲2.65MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the followingZombie tables were found after uninstall: 2 tables Zombie WordPress options detected upon uninstall: 8 options
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/cmc-hook/cmc_hook.php+88
Undefined index: action2
- The plugin did not uninstall correctly, leaving 250 files (2.65MB) in the plugin directory
- (new file) assets/css/codemirror/theme/base16-dark.css
- (new file) assets/css/codemirror/theme/3024-day.css
- (new file) assets/css/codemirror/theme/base16-light.css
- (new file) assets/css/codemirror/codemirror.css
- (new file) assets/css/codemirror/theme/3024-night.css
- (new file) assets/css/codemirror/theme/blackboard.css
- (new file) assets/css/codemirror/theme/ambiance-mobile.css
- (new file) assets/css/codemirror/theme/abcdef.css
- (new file) assets/css/codemirror/theme/ambiance.css
- (new file) assets/css/codemirror/theme/bespin.css
- ...
- wp_cmc_hook_project
- wp_cmc_hook
- widget_recent-comments
- cmc_hook_settings
- widget_theysaidso_widget
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmc-hook
- > Notice in wp-content/plugins/cmc-hook/include/class-cmc-hook-table.php+303
Undefined index: action2
- 5 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmc-hook
- > Notice in wp-content/plugins/cmc-hook/cmc_hook.php+93
Undefined index: cmchk_action
- 10 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmc-hook
- > Notice in wp-content/plugins/cmc-hook/include/class-cmc-hook-table.php+210
Undefined index: tab
- 4 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmc-hook
- > Notice in wp-content/plugins/cmc-hook/pages/admin.php+113
Undefined index: active
- 8 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmc-hook
- > Notice in wp-content/plugins/cmc-hook/pages/admin.php+114
Undefined index: class
- 4 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmc-hook
- > Notice in wp-content/plugins/cmc-hook/pages/admin.php+115
Undefined index: atts
- > GET request to /wp-admin/tools.php?page=cmc-hook
- > Notice in wp-content/plugins/cmc-hook/pages/admin.php+121
Undefined index: section
- 6 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmc-hook
- > Notice in wp-content/plugins/cmc-hook/include/class-cmc-hook-table.php+207
Undefined index: id
- > GET request to /wp-admin/tools.php?page=cmc-hook
- > Notice in wp-content/plugins/cmc-hook/include/class-cmc-hook-table.php+80
Undefined index: cmchk_status
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmc-hook
- > Notice in wp-content/plugins/cmc-hook/include/class-cmc-hook-table.php+208
Undefined index: status
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
cmc-hook/cmc_hook.php 85% from 13 tests
The main PHP script in "CMC Hook" version 1.0.6 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cmc-hook.php" instead of "cmc_hook.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin36,459 lines of code in 198 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 66 | 2,174 | 2,207 | 17,741 |
CSS | 67 | 506 | 404 | 7,392 |
PHP | 23 | 377 | 453 | 2,755 |
SVG | 1 | 0 | 0 | 2,671 |
HTML | 12 | 264 | 1 | 1,821 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
Markdown | 1 | 125 | 0 | 553 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 102 | |
▷ Static methods | 69 | 67.65% |
▷ Public methods | 97 | 95.10% |
▷ Protected methods | 2 | 1.96% |
▷ Private methods | 3 | 2.94% |
Functions | 17 | |
▷ Named functions | 5 | 29.41% |
▷ Anonymous functions | 12 | 70.59% |
Constants | 13 | |
▷ Global constants | 13 | 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
40 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/jqueryFileTree/images/linux.png | 0.65KB | 0.65KB | 0.00% |
assets/js/jqueryFileTree/images/ruby.png | 0.61KB | 0.65KB | 0.00% |
assets/css/codemirror/ui/images/silk/page_save.png | 0.76KB | 0.99KB | 0.00% |
assets/js/jqueryFileTree/images/film.png | 0.64KB | 0.75KB | 0.00% |
assets/js/jqueryFileTree/images/xls.png | 0.65KB | 0.63KB | ▼ 2.41% |