Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲2.50MB] [CPU: ▲27.51ms] Passed 4 tests
This is a short check of server-side resources used by CubeWP - All-in-One Dynamic Content Framework
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.77 ▲2.30 | 66.03 ▲21.52 |
Dashboard /wp-admin | 5.89 ▲2.58 | 85.53 ▲32.40 |
Posts /wp-admin/edit.php | 5.92 ▲2.56 | 75.70 ▲23.55 |
Add New Post /wp-admin/post-new.php | 9.10 ▲3.21 | 135.36 ▲32.58 |
Media Library /wp-admin/upload.php | 5.80 ▲2.57 | 77.21 ▲41.66 |
CubeWP Import /wp-admin/admin.php?page=cubewp-import | 5.71 | 72.94 |
User Dashboard /wp-admin/admin.php?page=cubewp-user-dashboard | 5.72 | 62.97 |
User Custom Fields /wp-admin/admin.php?page=user-custom-fields | 5.89 | 63.16 |
User Signup Form /wp-admin/admin.php?page=cubewp-user-registration-form | 5.72 | 62.19 |
Taxonomies /wp-admin/admin.php?page=cubewp-taxonomies | 5.84 | 67.49 |
Taxonomy Custom Fields /wp-admin/admin.php?page=taxonomy-custom-fields | 5.80 | 64.40 |
Post Types Form /wp-admin/admin.php?page=cubewp-post-types-form | 5.72 | 61.45 |
CubeWP Export /wp-admin/admin.php?page=cubewp-export | 5.72 | 61.69 |
Settings Custom Fields /wp-admin/admin.php?page=settings-custom-fields | 5.88 | 60.05 |
Single-Post Editor /wp-admin/admin.php?page=cubewp-single-layout | 5.72 | 62.80 |
Server storage [IO: ▲5.84MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 370 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_cube_relationships |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_cubewp_terms_widget |
db_upgraded |
widget_theysaidso_widget |
widget_cubewp_posts_widget |
cwpOptions |
theysaidso_admin_options |
cubewp_framework_installed_on |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CubeWP - All-in-One Dynamic Content Framework
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,243 ▲481 | 13.75 ▼0.58 | 8.92 ▲7.20 | 36.13 ▼9.78 |
Dashboard /wp-admin | 2,499 ▲322 | 5.62 ▲0.03 | 97.44 ▲5.45 | 77.00 ▲35.39 |
Posts /wp-admin/edit.php | 2,423 ▲323 | 2.05 ▲0.10 | 40.17 ▼0.10 | 37.58 ▲2.30 |
Add New Post /wp-admin/post-new.php | 2,011 ▲485 | 24.18 ▲1.17 | 726.49 ▲95.68 | 27.41 ▼20.07 |
Media Library /wp-admin/upload.php | 1,719 ▲319 | 4.10 ▼0.05 | 120.22 ▲24.79 | 48.94 ▲8.76 |
CubeWP Import /wp-admin/admin.php?page=cubewp-import | 1,389 | 1.78 | 31.56 | 76.89 |
User Dashboard /wp-admin/admin.php?page=cubewp-user-dashboard | 1,499 | 1.78 | 30.37 | 49.69 |
User Custom Fields /wp-admin/admin.php?page=user-custom-fields | 1,593 | 2.49 | 36.22 | 55.64 |
User Signup Form /wp-admin/admin.php?page=cubewp-user-registration-form | 1,413 | 1.89 | 31.17 | 42.73 |
Taxonomies /wp-admin/admin.php?page=cubewp-taxonomies | 1,736 | 3.43 | 52.73 | 84.38 |
Taxonomy Custom Fields /wp-admin/admin.php?page=taxonomy-custom-fields | 1,569 | 2.40 | 34.30 | 49.60 |
Post Types Form /wp-admin/admin.php?page=cubewp-post-types-form | 1,416 | 1.90 | 31.47 | 41.44 |
CubeWP Export /wp-admin/admin.php?page=cubewp-export | 1,443 | 1.90 | 37.73 | 47.24 |
Settings Custom Fields /wp-admin/admin.php?page=settings-custom-fields | 1,539 | 2.40 | 35.71 | 50.48 |
Single-Post Editor /wp-admin/admin.php?page=cubewp-single-layout | 1,514 | 1.90 | 33.43 | 50.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_cube_relationships
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_cubewp_terms_widget
- widget_cubewp_posts_widget
- widget_recent-posts
- db_upgraded
- cwpOptions
- can_compress_scripts
- cubewp_framework_installed_on
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CubeWp_Custom_Fields_Processor' not found in wp-content/plugins/cubewp-framework/cube/modules/users/class-cubewp-user-custom-fields-ui.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/cubewp-framework/cube/modules/list-tables/class-cubewp-post-types-list-table.php:2
- > PHP Fatal error
Uncaught Error: Class 'CubeWp_Frontend' not found in wp-content/plugins/cubewp-framework/cube/fields/frontend/cubewp-frontend-image-field.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/cubewp-framework/cube/modules/list-tables/class-cubewp-post-types-custom-fields-table.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/cubewp-framework/cube/modules/list-tables/class-cubewp-settings-custom-fields-table.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/cubewp-framework/cube/modules/list-tables/class-cubewp-user-custom-fields-table.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/cubewp-framework/cube/templates/archive-cpt.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/cubewp-framework/cube/templates/template-library.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/cubewp-framework/cube/templates/welcome.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/cubewp-framework/cube/templates/author.php:10
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid URI: "NA"
- Tags: You are using too many tags: 37 tag instead of maximum 10
cubewp-framework/cube.php 92% from 13 tests
The main PHP file in "CubeWP - All-in-One Dynamic Content Framework" ver. 1.1.12 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cubewp-framework.php" instead of "cube.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected45,374 lines of code in 219 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 163 | 3,694 | 6,332 | 26,753 |
CSS | 23 | 1,064 | 172 | 11,773 |
JavaScript | 28 | 747 | 426 | 6,580 |
SVG | 2 | 0 | 0 | 153 |
JSON | 3 | 16 | 0 | 115 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 101)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 27.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 101.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 153 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 153 | 100.00% |
▷ Final classes | 2 | 1.31% |
Methods | 1,135 | |
▷ Static methods | 350 | 30.84% |
▷ Public methods | 907 | 79.91% |
▷ Protected methods | 79 | 6.96% |
▷ Private methods | 149 | 13.13% |
Functions | 131 | |
▷ Named functions | 127 | 96.95% |
▷ Anonymous functions | 4 | 3.05% |
Constants | 36 | |
▷ Global constants | 9 | 25.00% |
▷ Class constants | 27 | 75.00% |
▷ Public constants | 27 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
135 PNG files occupy 2.71MB with 1.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cube/assets/admin/images/welcome-dashboard/cwp-logo.png | 1.70KB | 0.97KB | ▼ 43.01% |
cube/assets/lib/pretty-photo/images/prettyPhoto/facebook/btnNext.png | 0.83KB | 0.57KB | ▼ 30.77% |
cube/assets/admin/images/cube-logo.png | 29.91KB | 9.56KB | ▼ 68.05% |
cube/assets/lib/pretty-photo/images/prettyPhoto/light_square/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
cube/assets/admin/images/p_logo.png | 10.48KB | 4.88KB | ▼ 53.43% |