Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.08MB] [CPU: ▼190.58ms] Passed 4 tests
An overview of server-side resources used by Custom CSS/JS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.52 ▼0.20 | 16.09 ▼4.98 |
Dashboard /wp-admin | 2.57 ▼0.48 | 21.93 ▼22.65 |
Posts /wp-admin/edit.php | 2.57 ▼0.54 | 16.62 ▼20.96 |
Add New Post /wp-admin/post-new.php | 2.57 ▼2.86 | 15.53 ▼696.81 |
Media Library /wp-admin/upload.php | 2.57 ▼0.44 | 15.72 ▼21.88 |
Custom CSS/JS /wp-admin/themes.php?page=wp_custom_css_js | 2.57 | 16.23 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Custom CSS/JS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.00 ▲0.27 | 10.71 ▲0.14 | 47.04 ▲4.36 |
Dashboard /wp-admin | 2,978 ▲47 | 5.92 ▼0.03 | 139.89 ▼16.48 | 103.74 ▲6.03 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.02 | 61.83 ▼2.36 | 83.19 ▼11.76 |
Add New Post /wp-admin/post-new.php | 1,686 ▲14 | 18.83 ▲0.06 | 371.08 ▲12.05 | 111.59 ▼1.40 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▼0.02 | 140.45 ▼2.90 | 114.13 ▼16.93 |
Custom CSS/JS /wp-admin/themes.php?page=wp_custom_css_js | 1,269 | 2.06 | 51.34 | 74.60 |
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 plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-custom-cssjs/index.php+88
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 12 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=wp_custom_css_js
- > Notice in wp-content/plugins/wp-custom-cssjs/admin-settings.php+71
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-custom-cssjs/index.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-custom-cssjs/admin-settings.php:12
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
7 plugin tags: js, custom, jquery, javascript, css...
wp-custom-cssjs/index.php 85% from 13 tests
"Custom CSS/JS" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-custom-cssjs.php" instead of "index.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected206 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 14 | 20 | 206 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin