Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/custom-css-manager-plugin/custom-css-manager-loader.php+18
Undefined index: action
Server metrics [RAM: ▼1.17MB] [CPU: ▼49.57ms] Passed 4 tests
A check of server-side resources used by Custom CSS Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.82 ▼0.64 | 12.77 ▼30.57 |
Dashboard /wp-admin | 2.86 ▼0.49 | 18.11 ▼50.04 |
Posts /wp-admin/edit.php | 2.86 ▼0.50 | 23.34 ▼29.74 |
Add New Post /wp-admin/post-new.php | 2.86 ▼3.03 | 20.77 ▼87.93 |
Media Library /wp-admin/upload.php | 2.86 ▼0.37 | 21.44 ▼16.21 |
Custom CSS Manager /wp-admin/themes.php?page=custom-css-manager-settings | 2.86 | 20.08 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Custom CSS Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.62 ▲0.14 | 1.70 ▼0.52 | 42.33 ▼1.46 |
Dashboard /wp-admin | 2,202 ▲22 | 5.58 ▼0.08 | 84.12 ▼8.72 | 39.08 ▼5.42 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.05 | 39.66 ▼0.06 | 39.79 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.64 ▲0.45 | 640.36 ▼17.33 | 52.17 ▼11.08 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.14 ▼0.07 | 97.50 ▼14.84 | 40.40 ▼8.77 |
Custom CSS Manager /wp-admin/themes.php?page=custom-css-manager-settings | 1,243 | 4.84 | 120.68 | 46.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/custom-css-manager-plugin/custom-css-manager-plugin.php+239
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
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)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=custom-css-manager-settings
- > Notice in wp-content/plugins/custom-css-manager-plugin/custom-css-manager-plugin.php+227
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=custom-css-manager-settings
- > Notice in wp-content/plugins/custom-css-manager-plugin/custom-css-manager-plugin.php+227
Trying to access array offset on value of type null
- > GET request to /wp-admin/themes.php?page=custom-css-manager-settings
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
SRP 50% 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-css-manager-plugin/custom-css-manager-loader.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== custom-css-manager-plugin ===
) - Screenshots: Please add an image for screenshot #1 (Plugin Screenshot)
custom-css-manager-plugin/custom-css-manager-loader.php 92% from 13 tests
The principal PHP file in "Custom CSS Manager" v. 1.5.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-css-manager-plugin.php" instead of "custom-css-manager-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,511 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 134 | 184 | 2,003 |
PHP | 3 | 351 | 168 | 427 |
CSS | 2 | 7 | 2 | 81 |
HTML | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 89.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 10.26% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin