Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼10.25ms] Passed 4 tests
A check of server-side resources used by CSS Theme Override
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.08 | 22.34 ▼18.28 |
Dashboard /wp-admin | 3.31 ▼0.03 | 42.98 ▼19.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.00 ▼1.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.63 ▼1.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.18 ▲2.73 |
CSS Override /wp-admin/options-general.php?page=css_override | 3.18 | 28.12 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for CSS Theme Override
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.25 ▼1.33 | 4.20 ▲2.61 | 38.57 ▼5.76 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼1.05 | 104.13 ▼10.84 | 40.67 ▼5.54 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.03 | 40.08 ▲2.50 | 35.00 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.47 ▲0.85 | 629.55 ▼66.18 | 48.57 ▼6.12 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.31 ▲0.04 | 96.28 ▼6.43 | 42.37 ▼2.97 |
CSS Override /wp-admin/options-general.php?page=css_override | 829 | 2.02 | 21.81 | 44.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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 server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=css_override
- > Notice in wp-content/plugins/css-theme-override/css-theme-override-options.php+59
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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/css-theme-override/css-theme-override-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/css-theme-override/css-theme-override-options.php:2
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: override style, overrides, theme, styles, stylesheet...
css-theme-override/css-theme-override.php Passed 13 tests
"CSS Theme Override" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
99 characters long description:
Adds a settings panel to the WP Admin allowing you to override theme styles on a page or post basis
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 plugin108 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 14 | 22 | 79 |
Markdown | 1 | 15 | 0 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin