90% cssor

Code Review | Cssor

WordPress plugin Cssor scored 90% from 54 tests.

About plugin

  • Plugin page: cssor
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Jan 4, 2016
  • Latest release: Nov 11, 2016
  • Number of updates: 18
  • Update frequency: every 17.3 days
  • Top authors: webpuls (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,069 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.27ms] Passed 4 tests

This is a short check of server-side resources used by Cssor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.79 ▼7.13
Dashboard /wp-admin3.34 ▲0.0345.02 ▼9.27
Posts /wp-admin/edit.php3.39 ▲0.0348.11 ▼3.64
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.71 ▼9.05
Media Library /wp-admin/upload.php3.26 ▲0.0337.01 ▲5.18

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Cssor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.65 ▼0.011.81 ▲0.0743.89 ▲3.41
Dashboard /wp-admin2,229 ▲416.07 ▲1.19121.37 ▲5.0659.52 ▲17.71
Posts /wp-admin/edit.php2,121 ▲322.97 ▲0.9444.94 ▲4.0435.51 ▼1.13
Add New Post /wp-admin/post-new.php1,569 ▲3518.91 ▼4.17630.26 ▲14.7445.17 ▼13.44
Media Library /wp-admin/upload.php1,426 ▲475.38 ▲1.17100.37 ▼2.0069.20 ▲21.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Everything seems fine on the user side


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 require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === cssor === )
You can look at the official readme.txt

cssor/cssor.php Passed 13 tests

"Cssor" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
Simple and light wordpress custom css editor with minify option.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin34,033 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods11100.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icons/admin-nav.png3.93KB0.29KB▼ 92.62%