Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.39ms] Passed 4 tests
An overview of server-side resources used by WP Add Custom CSS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.08 | 38.93 ▼5.72 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.47 ▼4.45 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 48.86 ▲0.39 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 85.43 ▼19.53 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.34 ▲0.14 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Add Custom CSS
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.17 ▼1.21 | 1.63 ▼0.17 | 39.19 ▼11.47 |
Dashboard /wp-admin | 2,221 ▲33 | 4.94 ▼1.12 | 95.09 ▼6.81 | 62.52 ▲17.89 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.02 ▲0.02 | 39.56 ▲2.32 | 33.62 ▲0.32 |
Add New Post /wp-admin/post-new.php | 6,460 ▲4,927 | 20.24 ▼2.94 | 963.74 ▲274.86 | 63.23 ▲5.00 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.15 ▼0.03 | 95.41 ▼3.52 | 72.09 ▲30.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-add-custom-css/wordpress-add-custom-css.php
- 1× 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/wp-add-custom-css/css/custom-css.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-add-custom-css/wordpress-add-custom-css.php 92% from 13 tests
The main file in "WP Add Custom CSS" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-add-custom-css.php" instead of "wordpress-add-custom-css.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin9,741 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,104 | 1,014 | 8,956 |
CSS | 4 | 56 | 28 | 351 |
PHP | 3 | 33 | 25 | 297 |
PO File | 3 | 31 | 46 | 119 |
SVG | 1 | 0 | 1 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/resize-handle.png | 0.17KB | 0.16KB | ▼ 10.17% |
images/icon.png | 1.18KB | 0.26KB | ▼ 78.28% |