79% css-theme-override

Code Review | CSS Theme Override

WordPress plugin CSS Theme Override scored79%from 54 tests.

About plugin

  • Plugin page: css-theme-override
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Feb 27, 2014
  • Latest release: Sep 8, 2014
  • Number of updates: 21
  • Update frequency: every 9.1 days
  • Top authors: jcummings1974 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /5,117 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0822.34 ▼18.28
Dashboard /wp-admin3.31 ▼0.0342.98 ▼19.34
Posts /wp-admin/edit.php3.36 ▲0.0144.00 ▼1.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.63 ▼1.52
Media Library /wp-admin/upload.php3.23 ▲0.0137.18 ▲2.73
CSS Override /wp-admin/options-general.php?page=css_override3.1828.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.334.20 ▲2.6138.57 ▼5.76
Dashboard /wp-admin2,210 ▲224.85 ▼1.05104.13 ▼10.8440.67 ▼5.54
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0340.08 ▲2.5035.00 ▼0.15
Add New Post /wp-admin/post-new.php1,545 ▲3118.47 ▲0.85629.55 ▼66.1848.57 ▼6.12
Media Library /wp-admin/upload.php1,395 ▲104.31 ▲0.0496.28 ▼6.4342.37 ▼2.97
CSS Override /wp-admin/options-general.php?page=css_override8292.0221.8144.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP2142279
Markdown115029

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 code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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