Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/simple-discography/SiDi_Discography_Widget.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; SiDi_Discography_Widget has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼60.90ms] Passed 4 tests
This is a short check of server-side resources used by Simple Discography
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.35 | 5.26 ▼38.36 |
Dashboard /wp-admin | 2.17 ▼1.21 | 6.94 ▼64.39 |
Posts /wp-admin/edit.php | 2.17 ▼1.22 | 7.02 ▼44.99 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.76 | 6.10 ▼95.87 |
Media Library /wp-admin/upload.php | 2.17 ▼1.10 | 5.44 ▼31.32 |
All Album /wp-admin/edit.php?post_type=discography | 2.17 | 6.53 |
Add New /wp-admin/post-new.php?post_type=discography | 2.17 | 9.54 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=discography | 2.18 | 7.47 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=discography | 2.18 | 5.89 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_sidi_dw |
category_children |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Discography
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.49 ▼0.92 | 8.82 ▲7.13 | 44.63 ▲0.75 |
Dashboard /wp-admin | 2,235 ▲58 | 5.64 ▼0.03 | 98.12 ▼1.86 | 42.58 ▼3.74 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.02 ▲0.04 | 34.10 ▼3.37 | 35.46 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 22.99 ▼0.19 | 647.53 ▼75.21 | 48.53 ▼3.26 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.32 ▲0.12 | 105.32 ▲2.28 | 46.10 ▼2.61 |
All Album /wp-admin/edit.php?post_type=discography | 1,155 | 1.95 | 30.35 | 34.84 |
Add New /wp-admin/post-new.php?post_type=discography | 2,610 | 8.26 | 203.17 | 70.78 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=discography | 1,356 | 2.29 | 26.58 | 29.00 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=discography | 1,489 | 2.30 | 28.28 | 34.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/simple-discography/SiDi_Discography_Widget.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; SiDi_Discography_Widget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_sidi_dw
- category_children
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=discography
- > Deprecated in wp-content/plugins/simple-discography/SiDi_Discography_Widget.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; SiDi_Discography_Widget has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=discography
- > Deprecated in wp-content/plugins/simple-discography/classes/SiDi_Widget_Form.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; SiDi_Widget_Form has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=discography
- > Deprecated in wp-content/plugins/simple-discography/classes/SiDi_General_Form.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; SiDi_General_From has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=discography
- > Deprecated in wp-content/plugins/simple-discography/classes/SiDi_Generat_Form.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; SiDi_Generat_Form has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=discography
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SiDi_Discography_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/post-new.php?post_type=discography
- > Notice in wp-content/plugins/simple-discography/classes/SiDi_Generat_Form.php+223
A non well formed numeric value encountered
SRP 50% 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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-discography/SiDi_Posts.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-discography/SiDi_Shortcodes.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-discography/simple-discography.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-discography/SiDi_content.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-discography/classes/SiDi_Widget_Form.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-discography/SiDi_Discography_Widget.php:13
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
simple-discography/simple-discography.php Passed 13 tests
"Simple Discography" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
112 characters long description:
Simple Discography is a small plugin to very easy to use that will allow you to manage the albums of your band.
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
No dangerous file extensions were detected4,989 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 255 | 364 | 2,014 |
CSS | 4 | 40 | 60 | 1,406 |
PHP | 9 | 116 | 283 | 1,173 |
PO File | 3 | 204 | 243 | 396 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 27.60 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 5 | 12.82% |
▷ Public methods | 36 | 92.31% |
▷ Protected methods | 3 | 7.69% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/css/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.33KB | 0.16KB | ▼ 52.38% |
includes/css/images/ui-bg_glass_85_dfeffc_1x400.png | 0.33KB | 0.16KB | ▼ 53.08% |
includes/css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
includes/css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
includes/css/images/ui-icons_469bdd_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |