Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.69ms] Passed 4 tests
This is a short check of server-side resources used by Advanced CSS Editor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.97 ▼0.62 |
Dashboard /wp-admin | 3.34 ▼0.00 | 49.20 ▼16.09 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.28 ▼8.80 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.94 ▼8.95 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.44 ▼0.91 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced CSS Editor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.34 ▼0.01 | 1.74 ▼0.31 | 43.33 ▲4.35 |
Dashboard /wp-admin | 2,195 ▲14 | 5.51 ▼0.15 | 94.62 ▼5.13 | 44.07 ▲0.45 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.01 | 33.28 ▼9.12 | 34.78 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.52 ▼0.13 | 686.71 ▲12.17 | 58.65 ▲2.97 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▼0.00 | 94.93 ▼1.89 | 40.48 ▼3.85 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-css-editor/css-editor.php:126
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/advanced-css-editor/layout-picker.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/advanced-css-editor/syntax-highlighter.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% 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 your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot 1. Add a global custom CSS), #2 (Screenshot 2. Add custom CSS for Desktop), #3 (Screenshot 3. Add custom CSS for Tablet), #4 (Screenshot 4. Add custom CSS for Phone)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
advanced-css-editor/css-editor.php 85% from 13 tests
This is the main PHP file of "Advanced CSS Editor" version 3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-css-editor.php" instead of "css-editor.php")
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
There were no executable files found in this plugin8,220 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 872 | 1,004 | 7,649 |
CSS | 2 | 46 | 25 | 319 |
PHP | 3 | 31 | 20 | 252 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 1 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 37.95KB | 17.90KB | ▼ 52.82% |
screenshot-4.png | 36.24KB | 16.17KB | ▼ 55.38% |
screenshot-3.png | 39.25KB | 17.22KB | ▼ 56.13% |
screenshot-2.png | 36.14KB | 17.37KB | ▼ 51.94% |