Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼10.31ms] Passed 4 tests
Analyzing server-side resources used by Space Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 44.00 ▲2.91 |
Dashboard /wp-admin | 3.54 ▲0.19 | 52.09 ▼19.28 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 47.70 ▼1.38 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 83.98 ▼23.49 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.55 ▲3.12 |
Space Manager /wp-admin/options-general.php?page=space_manager | 3.37 | 30.86 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_defaultspacemanagerwidget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Space Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.37 ▼0.37 | 1.81 ▼0.02 | 44.75 ▲3.10 |
Dashboard /wp-admin | 2,196 ▲19 | 5.66 ▼0.01 | 87.54 ▼3.17 | 40.11 ▼3.62 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.02 ▼0.01 | 36.94 ▼0.71 | 32.91 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.24 ▲5.56 | 641.23 ▼40.46 | 59.32 ▼3.75 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.23 ▲0.00 | 102.27 ▼2.63 | 45.38 ▲1.92 |
Space Manager /wp-admin/options-general.php?page=space_manager | 816 | 2.02 | 25.19 | 28.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_defaultspacemanagerwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/space-manager/php/html/spaces_view.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/space-manager/php/space-manager-widget.class.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/space-manager/php/html/widget_form.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/space-manager/php/space-manager-widget.class.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/space-manager/php/html/zones_view.php:3
- > PHP Fatal error
Uncaught Error: Class 'SpaceManager' not found in wp-content/plugins/space-manager/space-manager.php:6
- > PHP Fatal error
Uncaught Error: Class 'SpaceManagerWidget' not found in wp-content/plugins/space-manager/space-manager-widget.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/space-manager/php/html/space_view.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/space-manager/php/space-manager-widget.class.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Setup zones to group your spaces logically), #2 (Create spaces within the zones), #3 (Use the built in tinyMCE editor to drop images into your spaces, just like writing a post.), #4 (Display the spaces in any sidebar and customize the appearance)
space-manager/index.php 92% from 13 tests
"Space Manager" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("space-manager.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,273 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 715 | 31 | 1,273 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 2 | 28.57% |
▷ Concrete classes | 5 | 71.43% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 1 | 1.23% |
▷ Public methods | 69 | 85.19% |
▷ Protected methods | 1 | 1.23% |
▷ Private methods | 11 | 13.58% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 59 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 59 | 100.00% |
▷ Public constants | 59 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.29MB with 0.16MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 19.36KB | 8.68KB | ▼ 55.19% |
screenshot-4.png | 37.54KB | 16.93KB | ▼ 54.92% |
screenshot-1.png | 26.49KB | 12.73KB | ▼ 51.96% |
screenshot-3.png | 212.25KB | 81.09KB | ▼ 61.79% |