Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.50MB] [CPU: ▼0.44ms] Passed 4 tests
Analyzing server-side resources used by Wordpress SuperSonic with CloudFlare
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.47 | 42.57 ▼4.21 |
Dashboard /wp-admin | 4.13 ▲0.57 | 53.71 ▼0.18 |
Posts /wp-admin/edit.php | 4.18 ▲0.50 | 57.49 ▲4.72 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.51 | 103.25 ▼2.07 |
Media Library /wp-admin/upload.php | 3.99 ▲0.50 | 45.94 ▲6.26 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 236 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_wpss_log |
wp_wpss_clear |
wp_wpss_links |
New WordPress options |
---|
wpss_db_version |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
wpss_v4 |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Wordpress SuperSonic with CloudFlare
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,647 ▼139 | 14.30 ▼0.51 | 1.31 ▼1.10 | 43.04 ▼0.93 |
Dashboard /wp-admin | 2,236 ▲59 | 5.62 ▼0.07 | 90.59 ▼8.32 | 42.50 ▼3.20 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.03 ▼0.03 | 40.12 ▲2.59 | 36.53 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,574 ▲26 | 21.90 ▼1.42 | 616.48 ▼36.15 | 55.58 ▲7.44 |
Media Library /wp-admin/upload.php | 1,438 ▲35 | 4.18 ▼0.05 | 98.45 ▼12.39 | 42.89 ▼2.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_wpss_links
- wp_wpss_log
- wp_wpss_clear
- Zombie WordPress options were found after uninstall: 8 options
- wpss_v4
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- wpss_db_version
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/supersonic/inc/views/statistics.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: nonce in wp-content/plugins/supersonic/inc/views/statistics.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/supersonic/inc/views/statistics.php:131
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/supersonic/inc/statistics.php:18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== supersonic ===
)
supersonic/supersonic.php 92% from 13 tests
The primary PHP file in "Wordpress SuperSonic with CloudFlare" version 1.9 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin3,607 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 160 | 790 | 3,607 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 87.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.90% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
224 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/mn.png | 0.65KB | 0.71KB | 0.00% |
flags/pf.png | 0.60KB | 0.58KB | ▼ 3.41% |
flags/lv.png | 0.43KB | 0.43KB | 0.00% |
flags/ki.png | 1.17KB | 1.18KB | 0.00% |
flags/dm.png | 0.91KB | 0.89KB | ▼ 2.03% |