84% simple-css

Code Review | Simple CSS

WordPress plugin Simple CSS scored84%from 54 tests.

About plugin

  • Plugin page: simple-css
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 21, 2015
  • Latest release: Aug 30, 2023
  • Number of updates: 26
  • Update frequency: every 109.2 days
  • Top authors: edge22 (100%)

Code review

54 tests

User reviews

58 reviews

Install metrics

100,000+ active /493,467 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.23ms] Passed 4 tests

A check of server-side resources used by Simple CSS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.12 ▲1.59
Dashboard /wp-admin3.35 ▲0.0448.41 ▼1.71
Posts /wp-admin/edit.php3.40 ▲0.0447.73 ▼3.21
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.81 ▼12.57
Media Library /wp-admin/upload.php3.28 ▲0.0437.96 ▲0.56
Simple CSS /wp-admin/themes.php?page=simple-css3.2532.52

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Simple CSS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▲0.011.91 ▲0.0644.19 ▼13.57
Dashboard /wp-admin2,202 ▲225.64 ▲0.0189.84 ▼8.4041.17 ▼0.26
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0335.72 ▼2.8836.74 ▼0.51
Add New Post /wp-admin/post-new.php6,243 ▲4,68926.19 ▲3.03870.50 ▲183.5052.26 ▼3.97
Media Library /wp-admin/upload.php1,401 ▲14.22 ▲0.04100.56 ▼10.5345.15 ▼4.18
Simple CSS /wp-admin/themes.php?page=simple-css1,0202.4639.7036.24

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

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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/simple-css/customize/css-control.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: css metabox, css customizer, css specific page, simple css, custom css...

simple-css/simple-css.php Passed 13 tests

This is the main PHP file of "Simple CSS" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Simply add CSS to your WordPress site using an awesome CSS editor or the live Customizer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin8,442 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript38949517,884
CSS36228354
PHP23880204

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin