Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼262.04ms] Passed 4 tests
Analyzing server-side resources used by Styles
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.98 | 39.67 ▲19.38 |
Dashboard /wp-admin | 3.30 ▲0.25 | 56.07 ▲15.64 |
Posts /wp-admin/edit.php | 3.35 ▲0.25 | 45.50 ▲1.79 |
Add New Post /wp-admin/post-new.php | 5.61 ▲0.18 | 93.60 ▼1,060.93 |
Media Library /wp-admin/upload.php | 3.18 ▲0.18 | 32.42 ▼4.67 |
Styles /wp-admin/options-general.php?page=styles | 3.16 | 31.31 |
Server storage [IO: ▲2.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 718 new files
Database: no new tables, 2 new options
New WordPress options |
---|
storm-styles-twentytwentyone-css |
storm-styles |
Browser metrics Passed 4 tests
Checking browser requirements for Styles
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,685 ▲79 | 15.88 ▲0.37 | 9.62 ▲0.92 | 50.29 ▲4.85 |
Dashboard /wp-admin | 2,937 ▲84 | 5.89 ▲0.05 | 140.93 ▲4.61 | 100.16 ▼2.21 |
Posts /wp-admin/edit.php | 2,713 ▲7 | 2.68 ▼0.00 | 60.39 ▼2.02 | 90.06 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,858 ▲5 | 19.12 ▼0.05 | 365.07 ▼6.50 | 102.75 ▼6.44 |
Media Library /wp-admin/upload.php | 1,782 ▲10 | 5.02 ▲0.03 | 155.24 ▼8.86 | 109.94 ▼19.98 |
Styles /wp-admin/options-general.php?page=styles | 1,061 | 2.09 | 56.13 | 75.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- storm-styles-twentytwentyone-css
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=styles
- > 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=styles
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/styles/views/licenses.php
- > /wp-content/plugins/styles/views/setting-heading.php
- > /wp-content/plugins/styles/views/setting-select.php
- > /wp-content/plugins/styles/classes/csstidy/css_optimiser.php
- > /wp-content/plugins/styles/views/setting-radio.php
- 53× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/styles/classes/styles-font-menu/views/menu.php:3
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/styles/classes/csstidy/css_optimiser.php on line 140
- > PHP Notice
Undefined variable: class in wp-content/plugins/styles/views/setting-hidden.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Styles_Control' not found in wp-content/plugins/styles/classes/styles-control-color.php:3
- > PHP Notice
Undefined variable: class in wp-content/plugins/styles/views/setting-textarea.php on line 1
- > PHP Notice
Undefined variable: id in wp-content/plugins/styles/views/setting-textarea.php on line 1
- > PHP Notice
Undefined variable: description in wp-content/plugins/styles/views/setting-select.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/styles/views/admin-options.php:3
- > PHP Notice
Undefined variable: id in wp-content/plugins/styles/views/setting-hidden.php on line 1
- > PHP Notice
Undefined variable: class in wp-content/plugins/styles/views/setting-password.php on line 1
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: You are using too many tags: 16 tag instead of maximum 10
- Screenshots: No descriptions were found for these screenshots #2, #3, #4 in styles/assets to your readme.txt
styles/styles.php 92% from 13 tests
The main PHP script in "Styles" version 1.2.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 238 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected8,654 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 1,650 | 2,716 | 6,678 |
JavaScript | 9 | 170 | 46 | 1,223 |
CSS | 7 | 56 | 84 | 567 |
Markdown | 2 | 63 | 0 | 125 |
JSON | 2 | 0 | 0 | 46 |
YAML | 1 | 4 | 0 | 15 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 153)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 27.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 286.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 2 | 5.26% |
▷ Concrete classes | 36 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 344 | |
▷ Static methods | 12 | 3.49% |
▷ Public methods | 337 | 97.97% |
▷ Protected methods | 3 | 0.87% |
▷ Private methods | 4 | 1.16% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 22 | |
▷ Global constants | 17 | 77.27% |
▷ Class constants | 5 | 22.73% |
▷ Public constants | 5 | 100.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
633 PNG files occupy 1.22MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/styles-font-menu/styles-fonts/png/monsieurladoulaise-regular.png | 3.75KB | 1.94KB | ▼ 48.24% |
classes/styles-font-menu/styles-fonts/png/vidaloka-regular.png | 1.64KB | 0.87KB | ▼ 47.11% |
classes/styles-font-menu/styles-fonts/png/imfelldwpicasc-regular.png | 3.13KB | 1.57KB | ▼ 49.98% |
classes/styles-font-menu/styles-fonts/png/sanchez-regular.png | 1.79KB | 0.84KB | ▼ 52.90% |
classes/styles-font-menu/styles-fonts/png/bangers-regular.png | 2.17KB | 1.08KB | ▼ 50.18% |