74% super-custom-css

Code Review | Super Custom CSS

WordPress plugin Super Custom CSS scored74%from 54 tests.

About plugin

  • Plugin page: super-custom-css
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 10, 2016
  • Latest release: Oct 19, 2021
  • Number of updates: 12
  • Update frequency: every 175.8 days
  • Top authors: iamaliiraja (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /2,467 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼34.19ms] Passed 4 tests

A check of server-side resources used by Super Custom CSS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0524.99 ▼16.43
Dashboard /wp-admin3.02 ▼0.2923.79 ▼27.30
Posts /wp-admin/edit.php3.02 ▼0.3424.63 ▼23.59
Add New Post /wp-admin/post-new.php3.02 ▼2.8723.17 ▼69.42
Media Library /wp-admin/upload.php3.02 ▼0.2123.81 ▼14.20
Super Custom CSS /wp-admin/themes.php?page=super-custom-css3.0221.75

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Super Custom CSS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲5713.61 ▼0.764.55 ▲2.4143.68 ▼0.25
Dashboard /wp-admin2,234 ▲465.30 ▼0.52106.93 ▼4.4138.58 ▼5.60
Posts /wp-admin/edit.php2,117 ▲282.38 ▲0.4239.61 ▲4.3235.82 ▲1.49
Add New Post /wp-admin/post-new.php1,543 ▲1023.51 ▲0.08606.65 ▼90.7432.79 ▼36.16
Media Library /wp-admin/upload.php1,419 ▲314.52 ▲0.3597.14 ▼11.5243.41 ▼1.28
Super Custom CSS /wp-admin/themes.php?page=super-custom-css1,0542.4437.2250.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/themes.php?page=super-custom-css
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Invalid version format
You can look at the official readme.txt

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

Analyzing the main PHP file in "Super Custom CSS" version 1.1
65 characters long description:
Add Custom CSS to your website in super way with Super Custom CSS

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 plugin9,254 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript59609938,681
CSS79546462
PHP16516111

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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