Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.16ms] Passed 4 tests
An overview of server-side resources used by Spacer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.14 ▲0.03 |
Dashboard /wp-admin | 3.50 ▲0.20 | 48.42 ▼1.08 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 52.15 ▲11.48 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 85.00 ▼17.37 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 41.38 ▲5.80 |
Spacer /wp-admin/options-general.php?page=motech_spacer-setting-admin | 3.44 | 47.18 |
Server storage [IO: ▲0.51MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Spacer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲124 | 13.41 ▼0.90 | 1.82 ▼0.10 | 40.44 ▼6.68 |
Dashboard /wp-admin | 2,246 ▲61 | 5.03 ▼0.83 | 107.61 ▼4.83 | 40.59 ▲2.21 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.30 ▲0.18 | 41.75 ▲2.01 | 38.34 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 17.81 ▼5.38 | 675.50 ▲35.66 | 37.69 ▼22.83 |
Media Library /wp-admin/upload.php | 1,425 ▲34 | 4.53 ▲0.33 | 101.49 ▲0.64 | 46.41 ▲2.92 |
Spacer /wp-admin/options-general.php?page=motech_spacer-setting-admin | 3,462 | 4.89 | 89.60 | 99.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spacer/index.php:1944
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/spacer/sva/sva.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5, #6, #7, #8 in spacer/assets to your readme.txt
spacer/index.php 92% from 13 tests
The entry point to "Spacer" version 3.0.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("spacer.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,156 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 314 | 207 | 2,354 |
JavaScript | 6 | 92 | 42 | 398 |
PO File | 3 | 123 | 123 | 373 |
CSS | 2 | 2 | 0 | 31 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 102.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.28MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/green_ribbon_base.png | 0.61KB | 0.58KB | ▼ 4.96% |
images/part.png | 13.73KB | 3.84KB | ▼ 72.03% |
icon.png | 0.23KB | 0.16KB | ▼ 27.90% |
images/green_ribbon_left.png | 2.68KB | 1.94KB | ▼ 27.83% |
sva/images/palette.png | 1.29KB | 0.65KB | ▼ 49.62% |