Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.78ms] Passed 4 tests
An overview of server-side resources used by Advanced Custom CSS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.29 ▼9.63 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.64 ▼1.16 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.56 ▼9.73 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.93 ▼2.59 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.56 ▲2.12 |
Advanced Custom CSS /wp-admin/themes.php?page=advanced-custom-css | 3.40 | 34.18 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
acc_css_posts |
acc_css_everywhere |
widget_recent-comments |
widget_theysaidso_widget |
acc_css_pages |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom CSS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲60 | 14.52 ▼0.16 | 1.96 ▼0.27 | 46.98 ▲1.56 |
Dashboard /wp-admin | 2,222 ▲19 | 4.87 ▼0.01 | 102.05 ▼30.90 | 36.25 ▼12.76 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.03 ▼0.00 | 36.19 ▼7.91 | 31.73 ▼13.53 |
Add New Post /wp-admin/post-new.php | 1,549 ▲4 | 23.27 ▲0.07 | 583.85 ▼99.08 | 58.91 ▼19.54 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.06 | 100.38 ▼15.47 | 45.94 ▼7.24 |
Advanced Custom CSS /wp-admin/themes.php?page=advanced-custom-css | 1,136 | 2.99 | 70.83 | 87.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 9 options
- widget_theysaidso_widget
- can_compress_scripts
- acc_css_everywhere
- acc_css_posts
- widget_recent-posts
- acc_css_pages
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 115 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=advanced-custom-css
- > Deprecated in wp-content/plugins/advanced-custom-css/include/csstidy/class.csstidy_optimise.php+702
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/themes.php?page=advanced-custom-css
- > Deprecated in wp-content/plugins/advanced-custom-css/include/csstidy/class.csstidy.php+61
Methods with the same name as their class will not be constructors in a future version of PHP; csstidy has a deprecated constructor
- > GET request to /wp-admin/themes.php?page=advanced-custom-css
- > Deprecated in wp-content/plugins/advanced-custom-css/include/csstidy/class.csstidy_print.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; csstidy_print has a deprecated constructor
- > GET request to /wp-admin/themes.php?page=advanced-custom-css
- > Deprecated in wp-content/plugins/advanced-custom-css/include/csstidy/class.csstidy_optimise.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; csstidy_optimise has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=advanced-custom-css
- > Notice in wp-content/plugins/advanced-custom-css/admin/acc-options.php+41
Undefined variable: action_url
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 take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/advanced-custom-css/advanced-custom-css.php:104
- > PHP Warning
require(lang.inc.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-custom-css/include/csstidy/css_optimiser.php on line 4
- > PHP Notice
Undefined variable: action_url in wp-content/plugins/advanced-custom-css/admin/acc-options.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/advanced-custom-css/admin/acc-options.php:28
- > PHP Fatal error
require(): Failed opening required 'lang.inc.php' (include_path='.:/usr/share/php') in wp-content/plugins/advanced-custom-css/include/csstidy/css_optimiser.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Donate link: Invalid url: "- https://paypal.me/prasadkirpekar"
advanced-custom-css/advanced-custom-css.php Passed 13 tests
The main file in "Advanced Custom CSS" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Add Custom CSS to your WordPress site. Easy and Flexible.
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected10,746 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 995 | 959 | 8,284 |
PHP | 7 | 284 | 738 | 2,155 |
CSS | 4 | 49 | 43 | 307 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 134)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 130.67 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 9.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 134.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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