94% tuxedo-css-editor

Code Review | Tuxedo CSS Editor

WordPress plugin Tuxedo CSS Editor scored 94% from 54 tests.

About plugin

  • Plugin page: tuxedo-css-editor
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.5
  • WordPress version: 5.8.1
  • First release: Apr 19, 2016
  • Latest release: Apr 21, 2016
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: andtrev (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 1,749 total downloads

Benchmarks

Plugin footprint Passed 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.05MB] [CPU: ▼146.20ms] Passed 4 tests

A check of server-side resources used by Tuxedo CSS Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0536.35 ▼0.38
Dashboard /wp-admin3.11 ▲0.0650.96 ▲2.36
Posts /wp-admin/edit.php3.16 ▲0.0552.20 ▼2.74
Add New Post /wp-admin/post-new.php5.47 ▲0.0498.00 ▼582.44
Media Library /wp-admin/upload.php3.05 ▲0.0534.89 ▲0.77

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tuxedo CSS Editor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,680 ▲4316.01 ▲0.3712.58 ▲1.4548.64 ▲0.86
Dashboard /wp-admin2,970 ▲335.90 ▼0.21161.99 ▲3.67117.15 ▼0.15
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0172.82 ▲2.7692.79 ▲3.15
Add New Post /wp-admin/post-new.php1,683 ▼20618.76 ▲2.71432.00 ▼38.05111.25 ▼11.49
Media Library /wp-admin/upload.php1,810 ▲35.02 ▼0.02158.22 ▼6.13120.53 ▼1.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tuxedo-css-editor/tuxedo_css_editor.php:88

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
8 plugin tags: sass, live, autoprefixer, css, less...

tuxedo-css-editor/tuxedo_css_editor.php 85% from 13 tests

This is the main PHP file of "Tuxedo CSS Editor" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("tuxedo-css-editor.php" instead of "tuxedo_css_editor.php")
  • Domain Path: The domain path folder was not found ("/languages")

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 plugin26,754 lines of code in 71 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript702,7181,37326,498
PHP165106256

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods111.11%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected