74% super-simple-custom-css

Code Review | Super Simple Custom CSS

WordPress plugin Super Simple Custom CSS scored74%from 54 tests.

About plugin

  • Plugin page: super-simple-cust...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5
  • WordPress version: 6.3.1
  • First release: Jul 22, 2016
  • Latest release: Aug 30, 2020
  • Number of updates: 28
  • Update frequency: every 53.6 days
  • Top authors: coloredwebwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /6,557 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.34ms] Passed 4 tests

Analyzing server-side resources used by Super Simple Custom CSS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0739.85 ▼1.52
Dashboard /wp-admin3.37 ▲0.0750.14 ▲3.68
Posts /wp-admin/edit.php3.42 ▲0.0745.55 ▲2.64
Add New Post /wp-admin/post-new.php5.97 ▲0.0896.65 ▲5.37
Media Library /wp-admin/upload.php3.29 ▲0.0732.14 ▼3.44

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables
wp_cw_css
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 Simple Custom CSS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲17814.49 ▲0.112.24 ▲0.2443.41 ▼2.84
Dashboard /wp-admin2,318 ▲1306.05 ▲0.16106.64 ▲6.8441.46 ▲3.26
Posts /wp-admin/edit.php2,156 ▲673.06 ▲1.0637.78 ▼6.2031.78 ▼4.93
Add New Post /wp-admin/post-new.php6,534 ▲5,00120.08 ▼3.20943.39 ▲350.5372.82 ▲24.88
Media Library /wp-admin/upload.php1,491 ▲1005.36 ▲1.19107.72 ▲9.3149.50 ▲7.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_cw_css
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/super-simple-custom-css/index.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: custom css, specific css, custom style, custom post type css, all post css...

super-simple-custom-css/index.php 85% from 13 tests

Analyzing the main PHP file in "Super Simple Custom CSS" version 2.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-simple-custom-css.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 200 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,045 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19691,164
PHP17754469
CSS11025412

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions10
▷ Named functions10100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
library/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
library/chosen/chosen-sprite.png0.53KB0.88KB0.00%