78% sublime-custom-css-editor

Code Review | Sublime Custom CSS Editor

WordPress plugin Sublime Custom CSS Editor scored78%from 54 tests.

About plugin

  • Plugin page: sublime-custom-cs...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Dec 22, 2015
  • Latest release: Dec 23, 2015
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: AsianCoders (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /7,313 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.43ms] Passed 4 tests

Analyzing server-side resources used by Sublime Custom CSS Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0528.25 ▼14.13
Dashboard /wp-admin3.34 ▼0.0149.83 ▼16.23
Posts /wp-admin/edit.php3.39 ▲0.0358.15 ▲8.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.59 ▼14.83
Media Library /wp-admin/upload.php3.26 ▲0.0337.70 ▼0.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sublime Custom CSS Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.011.71 ▲0.0942.47 ▼0.01
Dashboard /wp-admin2,196 ▲185.54 ▼0.1487.59 ▼15.7740.73 ▼3.50
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0139.19 ▲1.4037.06 ▲3.97
Add New Post /wp-admin/post-new.php1,531 ▲523.29 ▲0.17749.45 ▲0.6461.30 ▲2.90
Media Library /wp-admin/upload.php1,407 ▲74.24 ▲0.0498.90 ▼2.9442.05 ▼3.76
Sublime Custom CSS /wp-admin/sublime-custom-css-editor.php260.420.1415.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/sublime-custom-css-editor/inc/sublimecsse_function.php
    • > /wp-content/plugins/sublime-custom-css-editor/sublime-custom-css-editor.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/sublime-custom-css-editor.php
    • > Network (severe)
    wp-admin/sublime-custom-css-editor.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: css, css3, sublime, custom css, sublime text...

sublime-custom-css-editor/sublime-custom-css-editor.php 92% from 13 tests

The primary PHP file in "Sublime Custom CSS Editor" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin10,659 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript151,1511,04110,129
CSS66426405
PHP22836125

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions8
▷ Named functions8100.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
PNG images were not found in this plugin