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.08MB] [CPU: ▼1.56ms] Passed 4 tests
Analyzing server-side resources used by Instant CSS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.76 ▼1.19 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.07 ▼2.35 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 52.34 ▼2.50 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.98 ▼0.18 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 41.56 ▲2.96 |
Instant CSS /wp-admin/admin.php?page=instantcss | 3.27 | 35.74 |
Live editor /wp-admin/admin.php?page=instantcss-customizer | 3.27 | 32.44 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 13 new options
New WordPress options |
---|
icss_lang |
widget_recent-posts |
icss_preprocessor |
db_upgraded |
icss_css |
icss_version |
icss_postcss |
icss_minify |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Instant CSS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.35 ▲0.08 | 2.01 ▲0.13 | 40.49 ▼2.07 |
Dashboard /wp-admin | 2,238 ▲64 | 5.63 ▲0.11 | 90.06 ▼2.45 | 41.34 ▼7.62 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.00 ▼0.00 | 34.01 ▼2.18 | 34.35 ▼4.18 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.03 ▼0.15 | 679.36 ▼57.81 | 56.65 ▼1.86 |
Media Library /wp-admin/upload.php | 1,440 ▲46 | 4.23 ▲0.04 | 114.80 ▲9.95 | 47.49 ▲0.13 |
Instant CSS /wp-admin/admin.php?page=instantcss | 1,006 | 14.04 | 1,427.96 | 89.54 |
Live editor /wp-admin/admin.php?page=instantcss-customizer | 1,353 | 14.23 | 1,476.01 | 48.07 |
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
- The uninstall procedure has failed, leaving 13 options in the database
- widget_recent-comments
- icss_theme
- icss_version
- icss_minify
- db_upgraded
- icss_css
- icss_preprocessor
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/instant-css/classes/class.instantcss.php
- > /wp-content/plugins/instant-css/instantcss.php
- > /wp-content/plugins/instant-css/classes/class.instantcss_ajax.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_dashboard_url() in wp-content/plugins/instant-css/views/customizer.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (https://i.imgur.com/RH0C01m.png)
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
instant-css/instantcss.php 92% from 13 tests
The main file in "Instant CSS" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("instant-css.php" instead of "instantcss.php")
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
Everything looks great! No dangerous files found in this plugin948 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 90 | 87 | 398 |
JavaScript | 8 | 43 | 9 | 359 |
CSS | 2 | 23 | 1 | 149 |
JSON | 2 | 0 | 0 | 42 |
PHP code Passed 2 tests
This is a short overview 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.26 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 86.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.04% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin