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.01MB] [CPU: ▼6.87ms] Passed 4 tests
This is a short check of server-side resources used by Easy custom css by webriti
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.10 ▼3.73 |
Dashboard /wp-admin | 3.33 ▼0.02 | 49.28 ▼12.31 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.54 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.06 ▼11.70 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.99 ▲5.55 |
Easy custom css /wp-admin/options-general.php?page=easy_custom_css_panels | 3.22 | 31.68 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy custom css by webriti
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.15 ▼1.23 | 1.80 ▼0.02 | 43.16 ▼0.54 |
Dashboard /wp-admin | 2,210 ▲18 | 5.85 ▲0.90 | 94.87 ▼28.51 | 37.08 ▼9.99 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.02 | 35.91 ▲1.01 | 33.89 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.47 ▼5.86 | 686.19 ▲6.75 | 63.68 ▲8.87 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.25 ▲0.15 | 96.26 ▼3.26 | 46.25 ▲0.38 |
Easy custom css /wp-admin/options-general.php?page=easy_custom_css_panels | 1,030 | 2.33 | 33.20 | 31.90 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-custom-css/inc/options.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easy-custom-css/easy-custom-css.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-custom-css/inc/easy_options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Create Custom CSS like this.), #2 (Help and support.)
- Requires at least: The plugin version is formatted incorrectly
easy-custom-css/easy-custom-css.php Passed 13 tests
The main PHP script in "Easy custom css by webriti" version 1.0 is automatically included on every request by WordPress
80 characters long description:
Use this plugin to write your own Custom CSS. No need to modify the Theme files.
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin5,258 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 547 | 456 | 4,861 |
CSS | 2 | 29 | 22 | 197 |
PHP | 3 | 21 | 36 | 141 |
PO File | 1 | 25 | 37 | 59 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 40.00% |
▷ Protected methods | 3 | 60.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 36.56KB | 17.05KB | ▼ 53.35% |
(invalid) inc/images/css-icon.png | 0.84KB | 0.00KB | ▼ 100.00% |
screenshot-1.png | 31.10KB | 13.83KB | ▼ 55.54% |