90% disable-custom-css

Code Review | Disable Custom CSS

WordPress plugin Disable Custom CSS scored90%from 54 tests.

About plugin

  • Plugin page: disable-custom-css
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.1-5.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2016
  • Latest release: Feb 24, 2019
  • Number of updates: 8
  • Update frequency: every 100.9 days
  • Top authors: dimadin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,924 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.12ms] Passed 4 tests

Server-side resources used by Disable Custom CSS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.91 ▲0.99
Dashboard /wp-admin3.31 ▼0.0448.68 ▼11.73
Posts /wp-admin/edit.php3.36 ▲0.0043.76 ▼8.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.43 ▼25.60
Media Library /wp-admin/upload.php3.23 ▲0.0037.97 ▲2.20

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Disable Custom CSS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.141.73 ▲0.2743.70 ▲5.39
Dashboard /wp-admin2,203 ▲185.79 ▼0.0597.35 ▼3.0640.80 ▼5.78
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0534.48 ▼7.5734.52 ▼1.81
Add New Post /wp-admin/post-new.php1,514 ▼1917.55 ▼5.88668.05 ▲34.9849.51 ▼4.54
Media Library /wp-admin/upload.php1,382 ▼64.24 ▼0.0295.26 ▲0.3141.09 ▼3.33

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: performance, custom css

disable-custom-css/disable-custom-css.php 92% from 13 tests

The principal PHP file in "Disable Custom CSS" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15288

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin