Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/css-injector/_core/1.0.0L/libraries/CSSTidy/1.5.5/class.csstidy_optimise.php+913
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲0.12MB] [CPU: ▼8.89ms] Passed 4 tests
An overview of server-side resources used by Custom CSS Injector
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.34 ▼6.50 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.74 ▼2.51 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 46.90 ▼4.36 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 83.50 ▼22.20 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.49 ▼0.77 |
Site Area /wp-admin/admin.php?page=css-injector&tab=site_area | 3.34 | 33.49 |
Admin Area /wp-admin/admin.php?page=css-injector | 3.34 | 32.75 |
Registration Page /wp-admin/admin.php?page=css-injector&tab=registration_page | 3.34 | 32.09 |
CSS Injector /wp-admin/options-general.php?page=css-injector-redirect | 3.25 | 32.06 |
Login Page /wp-admin/admin.php?page=css-injector&tab=login_page | 3.34 | 33.60 |
Lost Password Page /wp-admin/admin.php?page=css-injector&tab=lost_password_page | 3.35 | 32.63 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 36 new options
New WordPress options |
---|
css-injector-register_css_head_code_safe |
css-injector-dashboard_css_foot_code |
css-injector-site_css_head_code_safe |
css-injector-recovery_css_foot_enabled |
css-injector-login_css_foot_enabled |
css-injector-dashboard_css_foot_code_safe |
css-injector-recovery_css_head_code_safe |
css-injector-recovery_css_head_code |
css-injector-dashboard_css_head_enabled |
css-injector-login_css_head_enabled |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Custom CSS Injector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.10 ▼0.19 | 1.74 ▼0.23 | 43.48 ▼4.78 |
Dashboard /wp-admin | 2,235 ▲58 | 5.57 ▼0.07 | 88.41 ▼12.85 | 87.21 ▲41.56 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.03 ▲0.09 | 35.64 ▼3.06 | 37.68 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,574 ▲45 | 23.13 ▼0.25 | 700.27 ▲62.83 | 55.75 ▲5.87 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.44 ▲0.26 | 105.83 ▼0.05 | 77.66 ▲31.93 |
Site Area /wp-admin/admin.php?page=css-injector&tab=site_area | 950 | 1.72 | 28.25 | 32.15 |
Admin Area /wp-admin/admin.php?page=css-injector | 944 | 1.77 | 28.00 | 29.60 |
Registration Page /wp-admin/admin.php?page=css-injector&tab=registration_page | 947 | 1.77 | 26.11 | 28.97 |
CSS Injector /wp-admin/options-general.php?page=css-injector-redirect | 947 | 1.73 | 28.03 | 30.48 |
Login Page /wp-admin/admin.php?page=css-injector&tab=login_page | 944 | 1.72 | 27.08 | 30.20 |
Lost Password Page /wp-admin/admin.php?page=css-injector&tab=lost_password_page | 947 | 1.72 | 30.37 | 27.80 |
Uninstaller [IO: ▲1.43MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attentionThis plugin did not uninstall successfully, leaving 37 options in the database
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/css-injector/uninstall.php+36
Undefined variable: _plugin
- The plugin did not uninstall correctly, leaving 57 files (1.43MB) in the plugin directory
- (new file) _core/1.0.0L/assets/fonts/77/1.0.0/77.svg
- (new file) _core/1.0.0L/assets/css/77/1.0.0/77.min.css
- (new file) _core/1.0.0L/WP77_load.php
- (new file) _core/1.0.0L/assets/fonts/77/1.0.0/77.ttf
- (new file) _core/1.0.0L/assets/fonts/77/1.0.0/77.woff
- (new file) _core/1.0.0L/assets/css/77/1.0.0/77.css
- (new file) _core/1.0.0L/admin_page.php
- (new file) _core/1.0.0L/assets/fonts/77/1.0.0/77.eot
- (new file) _core/1.0.0L/assets/css/font-awesome/4.7.0/font-awesome.min.css
- (new file) _core/1.0.0L/assets/css/font-awesome/4.7.0/font-awesome.css
- ...
- css-injector-recovery_css_head_code
- css-injector-login_css_foot_code_safe
- can_compress_scripts
- css-injector-site_css_head_code
- widget_recent-posts
- css-injector-register_css_head_code_safe
- widget_recent-comments
- css-injector-dashboard_css_foot_code
- css-injector-login_css_head_code
- css-injector-dashboard_css_head_code_safe
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: _core in wp-content/plugins/css-injector/_plugin/tabs/admin_area.index.php on line 29
- > PHP Fatal error
Uncaught Error: Call to a member function Call() on null in wp-content/plugins/css-injector/_plugin/tabs/site_area.index.php:29
- > PHP Notice
Undefined variable: _core in wp-content/plugins/css-injector/_plugin/tabs/login_page.index.php on line 29
- > PHP Fatal error
Uncaught Error: Call to a member function Call() on null in wp-content/plugins/css-injector/_plugin/tabs/lost_password_page.index.php:29
- > PHP Fatal error
Uncaught Error: Call to a member function Call() on null in wp-content/plugins/css-injector/_plugin/tabs/login_page.index.php:29
- > PHP Fatal error
Uncaught Error: Call to a member function Call() on null in wp-content/plugins/css-injector/_plugin/tabs/admin_area.index.php:29
- > PHP Notice
Undefined variable: _core in wp-content/plugins/css-injector/_plugin/tabs/lost_password_page.index.php on line 29
- > PHP Notice
Undefined variable: _core in wp-content/plugins/css-injector/_plugin/tabs/site_area.index.php on line 29
- > PHP Fatal error
Uncaught Error: Call to a member function Call() on null in wp-content/plugins/css-injector/_plugin/tabs/registration_page.index.php:29
- > PHP Notice
Undefined variable: _core in wp-content/plugins/css-injector/_plugin/tabs/registration_page.index.php on line 29
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=css-injector&tab=lost_password_page
- > Network (severe)
http://%20altspan%20class%3Dfa%20fa-fw%20fa-code/spanimg%20src= - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
css-injector/index.php 92% from 13 tests
The principal PHP file in "Custom CSS Injector" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("css-injector.php" instead of "index.php")
Code Analysis 97% from 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 detected9,273 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 1,628 | 3,824 | 4,108 |
SVG | 2 | 0 | 0 | 2,683 |
CSS | 4 | 19 | 13 | 2,438 |
JavaScript | 2 | 24 | 0 | 44 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 151)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 26.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 255.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 151.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 20 | 86.96% |
Methods | 219 | |
▷ Static methods | 123 | 56.16% |
▷ Public methods | 217 | 99.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.91% |
Functions | 19 | |
▷ Named functions | 3 | 15.79% |
▷ Anonymous functions | 16 | 84.21% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_core/1.0.0L/assets/img/icon_medium_default.png | 0.66KB | 0.49KB | ▼ 25.37% |
_core/1.0.0L/assets/img/icon_small_default.png | 0.43KB | 0.30KB | ▼ 31.53% |