84% dessky-custom-css

Code Review | Dessky Custom CSS

WordPress plugin Dessky Custom CSS scored84%from 54 tests.

About plugin

  • Plugin page: dessky-custom-css
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Oct 10, 2023
  • Number of updates: 8
  • Update frequency: every 298.7 days
  • Top authors: dessky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /812 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.39ms] Passed 4 tests

Server-side resources used by Dessky Custom CSS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.40 ▼6.85
Dashboard /wp-admin3.33 ▲0.0352.68 ▼2.00
Posts /wp-admin/edit.php3.39 ▲0.0346.34 ▼3.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.35 ▼9.57
Media Library /wp-admin/upload.php3.26 ▲0.0340.25 ▲4.36

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Dessky Custom CSS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.33 ▼0.271.77 ▼0.4243.34 ▼2.04
Dashboard /wp-admin2,202 ▲255.67 ▲0.0582.93 ▼11.0538.29 ▼6.04
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0034.38 ▼3.8834.07 ▼7.16
Add New Post /wp-admin/post-new.php1,538 ▲523.09 ▲0.03664.82 ▼1.4660.99 ▲10.98
Media Library /wp-admin/upload.php1,404 ▲74.24 ▲0.0196.37 ▼5.1544.40 ▲2.43
Dessky Custom CSS /wp-admin/dessky-custom-css.php260.420.1013.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/dessky-custom-css.php
    • > Network (severe)
    wp-admin/dessky-custom-css.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
The official readme.txt is a good inspiration

dessky-custom-css/dessky-custom-css.php Passed 13 tests

The entry point to "Dessky Custom CSS" version 1.1 is a PHP file that has certain tags in its header comment area
103 characters long description:
This lightweight plugin allows you to add custom CSS that overrides Plugins and Theme's default styles.

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
There were no executable files found in this plugin6,309 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24904555,960
CSS13122214
PHP33889135

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected