Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▲5.43ms] Passed 4 tests
This is a short check of server-side resources used by cubicFUSION Admin Enhancer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 40.10 ▼0.18 |
Dashboard /wp-admin | 3.82 ▲0.51 | 62.10 ▲9.63 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 56.91 ▲9.09 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 91.46 ▲3.16 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 51.42 ▲13.98 |
Admin Toolbar /wp-admin/admin.php?page=cf_plugins_admin_toolbar | 4.04 | 55.48 |
Shortcodes /wp-admin/admin.php?page=cf_plugins_shortcodes_widgets | 3.84 | 46.05 |
Dashboard Templates /wp-admin/edit.php?post_type=cf_dashboard | 3.72 | 39.95 |
CF Admin Enhancer /wp-admin/admin.php?page=cf_plugins_shortcodes_options | 3.73 | 41.16 |
Dashboard Gutenberg /wp-admin/admin.php?page=cf_plugins_dashboard_gutenberg | 3.79 | 37.08 |
Server storage [IO: ▲3.88MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 466 new files
Database: no new tables, 8 new options
New WordPress options |
---|
cubicfusion_admin_toolbar_nodes |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
cf_plugins_shortcodes_cache_widgets |
Browser metrics Passed 4 tests
cubicFUSION Admin Enhancer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲103 | 14.62 ▲0.35 | 1.73 ▲0.17 | 41.96 ▼0.57 |
Dashboard /wp-admin | 2,263 ▲86 | 5.72 ▲0.15 | 91.30 ▼1.57 | 38.05 ▼6.43 |
Posts /wp-admin/edit.php | 2,166 ▲69 | 2.06 ▲0.09 | 41.97 ▲5.59 | 35.84 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,750 ▲224 | 22.37 ▼0.76 | 638.20 ▼99.05 | 29.36 ▼35.49 |
Media Library /wp-admin/upload.php | 1,469 ▲69 | 4.44 ▲0.25 | 104.09 ▲1.08 | 45.88 ▼2.10 |
Admin Toolbar /wp-admin/admin.php?page=cf_plugins_admin_toolbar | 2,109 | 5.45 | 111.87 | 92.09 |
Shortcodes /wp-admin/admin.php?page=cf_plugins_shortcodes_widgets | 1,334 | 1.75 | 29.64 | 42.49 |
Dashboard Templates /wp-admin/edit.php?post_type=cf_dashboard | 1,332 | 2.15 | 34.99 | 39.69 |
CF Admin Enhancer /wp-admin/admin.php?page=cf_plugins_shortcodes_options | 1,087 | 2.28 | 26.31 | 35.64 |
Dashboard Gutenberg /wp-admin/admin.php?page=cf_plugins_dashboard_gutenberg | 1,442 | 4.20 | 70.44 | 43.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- cubicfusion_admin_toolbar_nodes
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 49× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/cubicfusion-admin-enhancer/inc/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Opis\\Closure\\ISecurityProvider' not found in wp-content/plugins/cubicfusion-admin-enhancer/inc/closure/src/SecurityProvider.php:10
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/cubicfusion-admin-enhancer/inc/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\ode' not found in wp-content/plugins/cubicfusion-admin-enhancer/inc/scssphp/src/Node/Number.php:29
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/cubicfusion-admin-enhancer/inc/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/cubicfusion-admin-enhancer/inc/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/cubicfusion-admin-enhancer/inc/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/cubicfusion-admin-enhancer/inc/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/cubicfusion-admin-enhancer/inc/scssphp/src/Formatter/Debug.php:22
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/cubicfusion-admin-enhancer/inc/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 18 tag instead of maximum 10
cubicfusion-admin-enhancer/cubicfusion.php 92% from 13 tests
The primary PHP file in "cubicFUSION Admin Enhancer" version 0.2.6.1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("cubicfusion-admin-enhancer.php" instead of "cubicfusion.php")
Code Analysis 95% from 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 detected68,572 lines of code in 306 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 122 | 14,328 | 18,515 | 32,408 |
PHP | 106 | 5,780 | 10,248 | 20,060 |
JSON | 4 | 0 | 0 | 6,697 |
CSS | 19 | 404 | 1,241 | 5,190 |
Sass | 21 | 332 | 31 | 1,559 |
JavaScript | 16 | 388 | 624 | 1,537 |
Markdown | 8 | 423 | 0 | 1,111 |
XML | 10 | 0 | 0 | 10 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,209)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 209)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 36.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,209.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 209.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 112 | |
▷ Abstract classes | 11 | 9.82% |
▷ Concrete classes | 101 | 90.18% |
▷ Final classes | 0 | 0.00% |
Methods | 1,114 | |
▷ Static methods | 146 | 13.11% |
▷ Public methods | 647 | 58.08% |
▷ Protected methods | 451 | 40.48% |
▷ Private methods | 16 | 1.44% |
Functions | 64 | |
▷ Named functions | 39 | 60.94% |
▷ Anonymous functions | 25 | 39.06% |
Constants | 87 | |
▷ Global constants | 11 | 12.64% |
▷ Class constants | 76 | 87.36% |
▷ Public constants | 76 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
inc/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
inc/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
inc/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
inc/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |