Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-whoosh/updater.php+270
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.33ms] Passed 4 tests
Analyzing server-side resources used by WP Whoosh
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.52 ▼5.17 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.48 ▼2.87 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 47.87 ▼4.87 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 91.15 ▼4.39 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.42 ▲1.85 |
API Key /wp-admin/admin.php?page=wpwhoosh_key | 3.31 | 29.85 |
Credits /wp-admin/admin.php?page=wpwhoosh_credits | 3.33 | 31.64 |
Intro (v1.6) /wp-admin/admin.php?page=wpwhoosh | 3.33 | 32.03 |
Hosts /wp-admin/admin.php?page=wpwhoosh_hosts | 3.35 | 32.75 |
Templates /wp-admin/admin.php?page=wpwhoosh_templates | 3.33 | 39.37 |
API Secret /wp-admin/admin.php?page=wpwhoosh_secret | 3.31 | 28.44 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Whoosh: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.24 ▼1.06 | 1.74 ▲0.07 | 42.01 ▲3.36 |
Dashboard /wp-admin | 2,245 ▲60 | 5.84 ▲0.02 | 100.52 ▼6.33 | 72.15 ▲27.43 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.02 ▲0.02 | 38.29 ▼2.05 | 34.59 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,548 ▲28 | 17.80 ▼5.45 | 723.62 ▲89.85 | 52.23 ▼10.72 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.06 ▼0.16 | 95.84 ▼4.56 | 67.41 ▲25.42 |
API Key /wp-admin/admin.php?page=wpwhoosh_key | 1,091 | 2.33 | 36.33 | 41.96 |
Credits /wp-admin/admin.php?page=wpwhoosh_credits | 990 | 2.08 | 36.60 | 24.87 |
Intro (v1.6) /wp-admin/admin.php?page=wpwhoosh | 945 | 2.01 | 24.93 | 26.95 |
Hosts /wp-admin/admin.php?page=wpwhoosh_hosts | 1,068 | 2.42 | 34.37 | 29.97 |
Templates /wp-admin/admin.php?page=wpwhoosh_templates | 1,012 | 2.10 | 35.62 | 30.88 |
API Secret /wp-admin/admin.php?page=wpwhoosh_secret | 1,079 | 2.23 | 35.60 | 33.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpwhoosh_secret
- > Notice in wp-content/plugins/wp-whoosh/secret.php+216
Undefined index: action
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 Fatal error
Uncaught Error: Class 'wpwhoosh_list' not found in wp-content/plugins/wp-whoosh/sites.php:1080
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-whoosh/site-list-table.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-whoosh/main.php:16
- > PHP Fatal error
Uncaught Error: Class 'wpwhoosh_list' not found in wp-content/plugins/wp-whoosh/hosts.php:619
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-whoosh/host-list-table.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-whoosh/host-list-table.php on line 10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-whoosh/site-list-table.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-whoosh/public.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-whoosh/admin.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-whoosh/site-list-table.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5 in wp-whoosh/assets to your readme.txt
wp-whoosh/main.php 92% from 13 tests
The main PHP file in "WP Whoosh" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-whoosh.php" instead of "main.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 plugin4,813 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 409 | 43 | 3,868 |
JavaScript | 10 | 62 | 94 | 658 |
CSS | 8 | 21 | 2 | 287 |
PHP code Passed 2 tests
Analyzing 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.41 |
Average class complexity | 42.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 176.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 349 | |
▷ Static methods | 292 | 83.67% |
▷ Public methods | 259 | 74.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 90 | 25.79% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 20 | 80.00% |
▷ Class constants | 5 | 20.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.19MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/get-api-key.png | 17.68KB | 8.30KB | ▼ 53.09% |
images/tick.png | 0.52KB | 0.52KB | 0.00% |
images/cross-32.png | 3.23KB | 1.59KB | ▼ 50.71% |
images/install.png | 1.73KB | 1.33KB | ▼ 22.82% |
images/cross.png | 0.64KB | 0.72KB | 0.00% |