Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.48ms] Passed 4 tests
An overview of server-side resources used by Custom CSS Addons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.39 ▼2.47 |
Dashboard /wp-admin | 3.35 ▲0.00 | 54.73 ▼15.91 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 55.72 ▲3.35 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.64 ▼10.90 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 45.37 ▲6.39 |
CSS addons /wp-admin/options-general.php?page=css_addons_available_manage | 3.24 | 40.30 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Custom CSS Addons: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲69 | 13.17 ▼1.51 | 1.54 ▼0.15 | 38.07 ▼10.18 |
Dashboard /wp-admin | 2,225 ▲22 | 4.84 ▼0.08 | 104.92 ▼9.30 | 38.00 ▼0.96 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▼0.04 | 43.00 ▲4.72 | 36.76 ▲1.62 |
Add New Post /wp-admin/post-new.php | 1,556 ▲12 | 23.06 ▲0.36 | 619.65 ▼10.14 | 65.01 ▲7.71 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.26 ▲0.11 | 113.64 ▼15.82 | 47.59 ▼5.09 |
CSS addons /wp-admin/options-general.php?page=css_addons_available_manage | 980 | 2.10 | 34.79 | 29.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/css-addons/css.php on line 15
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/css-addons/css.php on line 15
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/css-addons/css.php on line 15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 13 tag instead of maximum 10
css-addons/css.php 92% from 13 tests
The principal PHP file in "Custom CSS Addons" v. 1.9.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("css-addons.php" instead of "css.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin9,917 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 965 | 997 | 8,688 |
PHP | 1 | 45 | 77 | 402 |
CSS | 11 | 58 | 46 | 349 |
SVG | 1 | 0 | 0 | 282 |
HTML | 1 | 8 | 0 | 144 |
PO File | 1 | 197 | 477 | 48 |
YAML | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
7 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 2.59KB | 1.65KB | ▼ 36.46% |
assets/screenshot-3.png | 17.98KB | 7.30KB | ▼ 59.39% |
assets/icon-256x256.png | 4.62KB | 2.61KB | ▼ 43.48% |
assets/screenshot-1.png | 32.01KB | 12.85KB | ▼ 59.86% |
assets/banner-1544x500.png | 53.36KB | 18.45KB | ▼ 65.42% |