89% ele-ui-color-scheme-restoration

Code Review | Ele UI Color Scheme Restoration

WordPress plugin Ele UI Color Scheme Restoration scored89%from 54 tests.

About plugin

  • Plugin page: ele-ui-color-sche...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 12, 2023
  • Latest release: Aug 10, 2023
  • Number of updates: 7
  • Update frequency: every 8.4 days
  • Top authors: orionaselite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.56ms] Passed 4 tests

Server-side resources used by Ele UI Color Scheme Restoration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.22 ▼8.85
Dashboard /wp-admin3.31 ▼0.0443.02 ▼18.77
Posts /wp-admin/edit.php3.36 ▲0.0047.22 ▲0.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.39 ▼11.20
Media Library /wp-admin/upload.php3.23 ▲0.0032.61 ▼3.40

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 150 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Ele UI Color Scheme Restoration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11213.49 ▼1.271.48 ▼0.2037.89 ▼3.33
Dashboard /wp-admin2,203 ▲155.83 ▲0.9596.49 ▼19.7436.76 ▼12.58
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0438.82 ▲4.6035.95 ▲0.25
Add New Post /wp-admin/post-new.php1,533 ▲523.44 ▲0.04582.21 ▼88.2043.90 ▼13.57
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.0192.03 ▼12.9341.11 ▼5.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Requires at least: Version format is invalid
  • Donate link: Invalid URI ("")
  • Requires php: Version format is invalid
  • Screenshots: Add an image for screenshot #1 (Define Your Desired Settings)
You can take inspiration from this readme.txt

ele-ui-color-scheme-restoration/ele-ui-color-scheme-restoration.php Passed 13 tests

This is the main PHP file of "Ele UI Color Scheme Restoration" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
A plugin that allows you to restore the Elementor UI back to the old colors

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 plugin67,322 lines of code in 124 files:
LanguageFilesBlank linesComment linesLines of code
CSS1172,37222666,539
PHP6196455783
JavaScript12150

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.75
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods18
▷ Static methods15.56%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
Functions14
▷ Named functions1178.57%
▷ Anonymous functions321.43%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin