Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▲1.26ms] Passed 4 tests
This is a short check of server-side resources used by Simple Custom CSS and JS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 41.87 ▼0.53 |
Dashboard /wp-admin | 3.86 ▲0.55 | 52.93 ▲3.49 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 53.92 ▼3.08 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 101.47 ▲6.01 |
Media Library /wp-admin/upload.php | 3.71 ▲0.47 | 44.06 ▲5.17 |
Settings /wp-admin/edit.php?post_type=custom-css-js&page=custom-css-js-config | 3.67 | 39.28 |
All Custom Code /wp-admin/edit.php?post_type=custom-css-js | 3.77 | 45.70 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
ccj__version |
ccj_settings |
ccj__activation_time |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Custom CSS and JS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.38 ▲0.09 | 1.60 ▼0.15 | 42.94 ▼2.23 |
Dashboard /wp-admin | 2,237 ▲63 | 5.67 ▲0.15 | 84.00 ▼21.29 | 45.36 ▲1.54 |
Posts /wp-admin/edit.php | 2,136 ▲39 | 2.00 ▲0.03 | 35.57 ▼1.13 | 33.51 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,567 ▲39 | 18.05 ▼5.27 | 609.58 ▼50.67 | 76.87 ▲17.32 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.15 ▼0.06 | 102.74 ▼9.46 | 51.34 ▲5.69 |
Add Custom HTML /wp-admin/post-new.php?post_type=custom-css-js&language=html | 2,576 | 3.63 | 98.44 | 57.36 |
Settings /wp-admin/edit.php?post_type=custom-css-js&page=custom-css-js-config | 936 | 1.90 | 35.23 | 27.01 |
All Custom Code /wp-admin/edit.php?post_type=custom-css-js | 1,256 | 2.18 | 33.07 | 33.25 |
Add Custom JS /wp-admin/post-new.php?post_type=custom-css-js&language=js | 2,576 | 3.50 | 89.71 | 56.43 |
Add Custom CSS /wp-admin/post-new.php?post_type=custom-css-js&language=css | 2,585 | 3.53 | 87.99 | 56.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- ccj__version
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- ccj_settings
- can_compress_scripts
- ccj__activation_time
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
These attributes need to be fixed:
- Screenshots: A description for screenshot #4 is required in custom-css-js/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
custom-css-js/custom-css-js.php 92% from 13 tests
Analyzing the main PHP file in "Simple Custom CSS and JS" version 3.45
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected7,018 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 36 | 431 | 142 | 3,528 |
PHP | 7 | 533 | 415 | 1,976 |
PO File | 3 | 352 | 383 | 989 |
CSS | 10 | 33 | 29 | 525 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 48.71 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 215.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 80 | |
▷ Static methods | 5 | 6.25% |
▷ Public methods | 78 | 97.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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 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 |
assets/images/button-close-hover.png | 1.53KB | 0.59KB | ▼ 61.67% |
assets/images/button-close.png | 1.50KB | 0.56KB | ▼ 62.64% |