Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.41ms] Passed 4 tests
An overview of server-side resources used by Storefront Pro Skins
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.27 ▲0.18 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.44 ▼10.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.42 ▼15.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.61 ▼5.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.11 ▼2.14 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Storefront Pro Skins
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.04 | 1.85 ▲0.21 | 43.80 ▲2.89 |
Dashboard /wp-admin | 2,198 ▲33 | 5.58 ▼0.08 | 87.56 ▼28.89 | 40.49 ▼31.34 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▼0.00 | 32.99 ▼6.52 | 33.44 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.65 ▲0.56 | 688.17 ▲45.96 | 56.20 ▼9.77 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.21 ▲0.06 | 99.51 ▼1.25 | 40.97 ▼2.94 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/storefront-pro-skins/inc/tpl-skins-manager.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/storefront-pro-skins/storefront-pro-skins.php:74
- > PHP Fatal error
Uncaught Error: Class 'Storefront_Pro_Skins' not found in wp-content/plugins/storefront-pro-skins/inc/tpl-settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/storefront-pro-skins/inc/class-customize-control.php:3
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
storefront-pro-skins/storefront-pro-skins.php Passed 13 tests
The main PHP script in "Storefront Pro Skins" version 1.0.0 is automatically included on every request by WordPress
87 characters long description:
Save instances of theme customization settings as skins and apply them on demand later.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,374 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 42 | 54 | 401 |
Sass | 3 | 33 | 1 | 355 |
PHP | 6 | 71 | 105 | 281 |
CoffeeScript | 3 | 53 | 29 | 260 |
CSS | 2 | 6 | 1 | 51 |
JSON | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 3 | 20.00% |
▷ Public methods | 10 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin