Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼143.05ms] Passed 4 tests
A check of server-side resources used by SSP Director Tools
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▲0.05 | 29.55 ▲0.47 |
Dashboard /wp-admin | 3.08 ▲0.03 | 42.70 ▲0.53 |
Posts /wp-admin/edit.php | 3.19 ▲0.09 | 42.32 ▼1.18 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 86.29 ▼572.02 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 31.96 ▲4.45 |
SSP Director Tools /wp-admin/options-general.php?page=ssp-director-tools | 2.97 | 22.85 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 84 new files
Database: no new tables, 4 new options
New WordPress options |
---|
sspdt_format_options |
sspdt_defaults |
widget_sspdt_widget |
sspdt_fancybox |
Browser metrics Passed 4 tests
SSP Director Tools: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,869 ▲273 | 16.34 ▲0.77 | 18.17 ▲9.17 | 43.52 ▼5.02 |
Dashboard /wp-admin | 2,975 ▲44 | 5.91 ▼0.06 | 149.78 ▼9.79 | 113.05 ▲0.72 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.00 | 66.00 ▼1.36 | 86.02 ▼5.97 |
Add New Post /wp-admin/post-new.php | 1,675 ▲71 | 18.85 ▲0.04 | 379.06 ▲11.60 | 113.27 ▲6.48 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▼0.01 | 141.74 ▼4.48 | 116.17 ▼4.14 |
SSP Director Tools /wp-admin/options-general.php?page=ssp-director-tools | 2,417 | 2.09 | 53.80 | 103.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ssp-director-tools
- > Warning in wp-content/plugins/ssp-director-tools/includes/sspdt-options-page.php+162
Use of undefined constant curl_version - assumed 'curl_version' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=ssp-director-tools
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=ssp-director-tools
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=ssp-director-tools
- > Notice in wp-content/plugins/ssp-director-tools/includes/sspdt-options-page.php+270
Undefined variable: disable_cache
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ssp-director-tools
- > Notice in wp-content/plugins/ssp-director-tools/includes/sspdt-options-page.php+299
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ssp-director-tools/feed/feed.php
- 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DirectorWrapper' not found in wp-content/plugins/ssp-director-tools/feed/includes/api/Gallery.php:3
- > PHP Fatal error
Uncaught Error: Class 'DirectorWrapper' not found in wp-content/plugins/ssp-director-tools/includes/api/Gallery.php:3
- > PHP Notice
Undefined index: name in wp-content/plugins/ssp-director-tools/includes/api/cache/clear.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'DirectorWrapper' not found in wp-content/plugins/ssp-director-tools/feed/includes/api/Format.php:3
- > PHP Fatal error
Uncaught Error: Class 'DirectorWrapper' not found in wp-content/plugins/ssp-director-tools/feed/includes/api/Utils.php:3
- > PHP Fatal error
Uncaught Error: Class 'DirectorWrapper' not found in wp-content/plugins/ssp-director-tools/includes/api/Format.php:3
- > PHP Fatal error
Uncaught Error: Class 'DirectorWrapper' not found in wp-content/plugins/ssp-director-tools/includes/api/App.php:3
- > PHP Fatal error
Uncaught Error: Class 'DirectorWrapper' not found in wp-content/plugins/ssp-director-tools/includes/api/Cache.php:3
- > PHP Fatal error
Uncaught Error: Class 'DirectorWrapper' not found in wp-content/plugins/ssp-director-tools/includes/api/Utils.php:3
- > PHP Fatal error
Uncaught Error: Class 'DirectorWrapper' not found in wp-content/plugins/ssp-director-tools/includes/api/Album.php:3
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Options pane), #2 (Photo Grid Widget), #3 (Example output of a photo grid with RSS photo link)
ssp-director-tools/ssp-director-tools.php 92% from 13 tests
Analyzing the main PHP file in "SSP Director Tools" version 1.3
The following require your attention:
- 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,849 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 398 | 168 | 2,047 |
JavaScript | 5 | 297 | 119 | 887 |
PO File | 2 | 284 | 412 | 510 |
CSS | 3 | 67 | 18 | 394 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 79 | 89.77% |
▷ Protected methods | 2 | 2.27% |
▷ Private methods | 7 | 7.95% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
28 compressed PNG files occupy 0.35MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 178.81KB | 68.44KB | ▼ 61.72% |
js/fancybox/fancy_nav_right.png | 1.42KB | 1.66KB | 0.00% |
js/fancybox/fancy_close.png | 1.48KB | 1.73KB | 0.00% |
js/fancybox/fancy_nav_left.png | 1.41KB | 1.64KB | 0.00% |
js/fancybox/fancy_shadow_se.png | 0.34KB | 0.48KB | 0.00% |