Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.34ms] Passed 4 tests
Analyzing server-side resources used by Super Simple Custom CSS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.07 | 39.85 ▼1.52 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.14 ▲3.68 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 45.55 ▲2.64 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 96.65 ▲5.37 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 32.14 ▼3.44 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cw_css |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Super Simple Custom CSS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲178 | 14.49 ▲0.11 | 2.24 ▲0.24 | 43.41 ▼2.84 |
Dashboard /wp-admin | 2,318 ▲130 | 6.05 ▲0.16 | 106.64 ▲6.84 | 41.46 ▲3.26 |
Posts /wp-admin/edit.php | 2,156 ▲67 | 3.06 ▲1.06 | 37.78 ▼6.20 | 31.78 ▼4.93 |
Add New Post /wp-admin/post-new.php | 6,534 ▲5,001 | 20.08 ▼3.20 | 943.39 ▲350.53 | 72.82 ▲24.88 |
Media Library /wp-admin/upload.php | 1,491 ▲100 | 5.36 ▲1.19 | 107.72 ▲9.31 | 49.50 ▲7.50 |
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 does not fully uninstall, leaving 1 table in the database
- wp_cw_css
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/super-simple-custom-css/index.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: custom css, specific css, custom style, custom post type css, all post css...
super-simple-custom-css/index.php 85% from 13 tests
Analyzing the main PHP file in "Super Simple Custom CSS" version 2.0
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-simple-custom-css.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 200 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,045 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 96 | 9 | 1,164 |
PHP | 1 | 77 | 54 | 469 |
CSS | 1 | 10 | 25 | 412 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
library/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
library/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |