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.34MB] [CPU: ▼11.65ms] Passed 4 tests
Server-side resources used by Custom WP CSS & JS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.77 ▼35.93 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.30 ▼0.80 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.99 ▲7.92 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.04 ▼10.96 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 37.11 ▲1.10 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom WP CSS & JS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.61 ▼0.66 | 1.75 ▲0.17 | 44.08 ▼8.14 |
Dashboard /wp-admin | 2,210 ▲25 | 5.87 ▼0.01 | 116.12 ▼0.93 | 47.06 ▲5.94 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.03 | 42.45 ▲4.72 | 37.51 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.13 ▲0.03 | 669.88 ▲13.53 | 59.52 ▼5.91 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.20 ▼0.04 | 128.88 ▲23.13 | 50.49 ▲6.26 |
Custom CSS & JS /wp-admin/custom-wp-css-js.php | 26 | 0.44 | 0.09 | 16.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/custom-wp-css-js.php
- > Network (severe)
wp-admin/custom-wp-css-js.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: custom dashboard, custom css, javascript, custom, css...
custom-wp-css-js/custom-wp-css-js.php 92% from 13 tests
Analyzing the main PHP file in "Custom WP CSS & JS" version 1.2.1
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 187 characters long)
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 plugin9,317 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 981 | 995 | 8,822 |
PHP | 4 | 42 | 87 | 271 |
Sass | 1 | 17 | 0 | 104 |
CSS | 3 | 1 | 0 | 103 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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.10MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 58.43KB | 12.50KB | ▼ 78.60% |
assets/screenshot-2.png | 44.86KB | 9.79KB | ▼ 78.17% |