Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.33ms] Passed 4 tests
A check of server-side resources used by Spice Starter Sites
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.21 ▼2.08 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.10 ▼1.37 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.29 ▲3.35 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.20 ▼3.64 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.21 ▲1.77 |
Server storage [IO: ▲6.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 193 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Spice Starter Sites
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 14.74 ▲0.53 | 1.98 ▼0.28 | 41.47 ▼6.50 |
Dashboard /wp-admin | 2,223 ▲35 | 5.87 ▲0.95 | 113.69 ▼1.16 | 43.43 ▲0.28 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.02 ▲0.01 | 41.35 ▲1.46 | 35.60 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,523 ▲6 | 23.51 ▲5.81 | 665.43 ▲51.28 | 65.13 ▲9.81 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.19 ▼0.01 | 101.86 ▲0.00 | 43.19 ▲1.62 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/spice-starter-sites/demo-content/setup.php:203
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/spice-starter-sites/inc/importer/autoimporter.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/spice-starter-sites/inc/importer/autoimporter.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/spice-starter-sites/inc/importer/autoimporter.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/spice-starter-sites/admin/view.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
No plugin tags provided
spice-starter-sites/spice-starter-sites.php 92% from 13 tests
"Spice Starter Sites" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected36,562 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 8,349 | 17,565 | 35,328 |
CSS | 14 | 79 | 16 | 802 |
JavaScript | 4 | 42 | 60 | 218 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 87.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,312 | |
▷ Static methods | 199 | 15.17% |
▷ Public methods | 923 | 70.35% |
▷ Protected methods | 17 | 1.30% |
▷ Private methods | 372 | 28.35% |
Functions | 116 | |
▷ Named functions | 113 | 97.41% |
▷ Anonymous functions | 3 | 2.59% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/completed.png | 2.59KB | 1.22KB | ▼ 52.91% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/newscrunch.png | 3.25KB | 2.93KB | ▼ 9.85% |