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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.51ms] Passed 4 tests
An overview of server-side resources used by Custom CSS Pro
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.37 ▲1.07 |
Dashboard /wp-admin | 3.32 ▼0.03 | 48.67 ▼6.07 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.94 ▼3.47 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.78 ▼29.17 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.46 ▲0.69 |
Custom CSS Pro /wp-admin/options-general.php?page=custom-css-pro | 3.21 | 30.72 |
CCP /wp-admin/admin.php?page=ccp-editor | 3.05 | 22.91 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Custom CSS Pro
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲75 | 14.17 ▼0.18 | 1.79 ▼0.08 | 40.76 ▲0.56 |
Dashboard /wp-admin | 2,213 ▲35 | 5.60 ▼0.12 | 83.76 ▼15.30 | 47.18 ▲5.73 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.03 ▲0.07 | 33.56 ▼8.14 | 36.39 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,547 ▲12 | 18.26 ▲0.05 | 603.96 ▼24.05 | 67.71 ▲8.43 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.15 ▼0.06 | 96.93 ▼10.10 | 40.37 ▼5.19 |
Custom CSS Pro /wp-admin/options-general.php?page=custom-css-pro | 1,186 | 3.81 | 63.62 | 98.87 |
CCP /wp-admin/admin.php?page=ccp-editor | 524 | 2.99 | 60.73 | 43.22 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-css-pro/index.php:39
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=custom-css-pro
- > Network (severe)
wp-content/plugins/custom-css-pro/custom-css-pro.css?ver=6.3.1 - 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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: css, custom css, simple, custom
custom-css-pro/index.php 92% from 13 tests
Analyzing the main PHP file in "Custom CSS Pro" version 1.0.7
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 ("custom-css-pro.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected692 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 28 | 69 | 47 | 392 |
CSS | 1 | 17 | 6 | 179 |
PHP | 1 | 71 | 39 | 121 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 11 | |
▷ Named functions | 11 | 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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/left.png | 0.24KB | 0.28KB | 0.00% |
img/cog.png | 0.56KB | 0.57KB | 0.00% |