Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.33MB] [CPU: ▼9.80ms] Passed 4 tests
An overview of server-side resources used by Space Boxes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.50 | 43.80 ▲2.27 |
Dashboard /wp-admin | 3.83 ▲0.53 | 47.44 ▼6.88 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 50.68 ▲0.58 |
Add New Post /wp-admin/post-new.php | 5.66 ▼0.23 | 69.39 ▼34.30 |
Media Library /wp-admin/upload.php | 3.76 ▲0.52 | 37.05 ▲1.39 |
All Space Boxes /wp-admin/edit.php?post_type=spaceboxes | 3.80 | 40.63 |
Categories /wp-admin/edit-tags.php?taxonomy=spacebox-categories&post_type=spaceboxes | 3.75 | 36.13 |
Settings /wp-admin/edit.php?post_type=spaceboxes&page=spaceboxes-settings | 3.66 | 33.60 |
New Space Box /wp-admin/post-new.php?post_type=spaceboxes | 3.76 | 40.99 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
ba_spacebox_settings |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Space Boxes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲192 | 14.22 ▼0.07 | 5.29 ▲3.30 | 44.32 ▲2.62 |
Dashboard /wp-admin | 2,262 ▲73 | 5.06 ▲0.10 | 99.38 ▼21.54 | 84.91 ▲38.97 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.42 ▲0.37 | 42.18 ▲6.18 | 36.19 ▲4.97 |
Add New Post /wp-admin/post-new.php | 1,727 ▲213 | 25.14 ▲7.65 | 650.67 ▼13.20 | 35.31 ▼23.95 |
Media Library /wp-admin/upload.php | 1,448 ▲57 | 4.42 ▲0.23 | 110.76 ▲13.98 | 44.68 ▲0.40 |
All Space Boxes /wp-admin/edit.php?post_type=spaceboxes | 1,117 | 2.37 | 40.59 | 29.03 |
Categories /wp-admin/edit-tags.php?taxonomy=spacebox-categories&post_type=spaceboxes | 1,337 | 2.18 | 30.35 | 32.02 |
Settings /wp-admin/edit.php?post_type=spaceboxes&page=spaceboxes-settings | 1,352 | 3.10 | 65.45 | 32.05 |
New Space Box /wp-admin/post-new.php?post_type=spaceboxes | 2,422 | 7.98 | 170.27 | 149.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- ba_spacebox_settings
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=spaceboxes
- > User deprecated in wp-includes/functions.php+5828
Hook dbx_post_advanced is deprecated since version 3.7.0! Use add_meta_boxes instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/space-boxes/libs/custom-meta-boxes/custom-meta-boxes.php on line 41
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/space-boxes/libs/custom-meta-boxes/tests/testGroupField.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/space-boxes/inc/galleryfield.php:6
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/space-boxes/libs/custom-meta-boxes/custom-meta-boxes.php on line 41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/space-boxes/inc/galleryfield.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/space-boxes/libs/custom-meta-boxes/classes.fields.php:568
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/space-boxes/libs/custom-meta-boxes/tests/testField.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/space-boxes/libs/custom-meta-boxes/classes.fields.php:568
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/space-boxes/libs/custom-meta-boxes/example-functions.php:104
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/space-boxes/inc/columns.php:6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: grid, lightbox, boxes, content boxes, info boxes...
space-boxes/spaceboxes.php 92% from 13 tests
"Space Boxes" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("space-boxes.php" instead of "spaceboxes.php")
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
Good job! No executable or dangerous file extensions detected4,972 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 986 | 527 | 1,946 |
LESS | 4 | 348 | 311 | 1,295 |
CSS | 3 | 71 | 18 | 780 |
JavaScript | 17 | 283 | 134 | 767 |
PO File | 2 | 50 | 52 | 149 |
Markdown | 2 | 22 | 0 | 34 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 1 | 3.23% |
▷ Concrete classes | 30 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 2 | 1.35% |
▷ Public methods | 143 | 96.62% |
▷ Protected methods | 1 | 0.68% |
▷ Private methods | 4 | 2.70% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/custom-meta-boxes/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
libs/custom-meta-boxes/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
libs/custom-meta-boxes/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
libs/custom-meta-boxes/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
libs/custom-meta-boxes/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |