73% easybackendstyle

Code Review | EasyBackendStyle

WordPress plugin EasyBackendStyle scored73%from 54 tests.

About plugin

  • Plugin page: easybackendstyle
  • Plugin version: 2.1.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 13, 2022
  • Latest release: Aug 16, 2023
  • Number of updates: 26
  • Update frequency: every 10.7 days
  • Top authors: farndesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /658 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▲2.50ms] Passed 4 tests

Analyzing server-side resources used by EasyBackendStyle
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.63 ▲1.74
Dashboard /wp-admin3.35 ▲0.0555.31 ▲4.66
Posts /wp-admin/edit.php3.47 ▲0.1148.92 ▲4.37
Add New Post /wp-admin/post-new.php5.93 ▲0.0588.71 ▲0.07
Media Library /wp-admin/upload.php3.28 ▲0.0538.32 ▲3.83
EasyBackendStyle /wp-admin/options-general.php?page=easyBackendStyle3.3656.95

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/easybackendstyle/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/easybackendstyle/resources/images/EasyBackendStyle-klein-gr\303\274n.svg"
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables
wp_easyBackendStyle
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for EasyBackendStyle
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲6613.29 ▼1.081.97 ▼0.3041.49 ▼2.32
Dashboard /wp-admin2,196 ▲85.79 ▲0.89100.66 ▼2.9739.28 ▼0.62
Posts /wp-admin/edit.php2,094 ▲51.99 ▼0.0138.22 ▼2.9431.97 ▼2.14
Add New Post /wp-admin/post-new.php1,544 ▲1517.96 ▼0.24597.42 ▼39.1653.08 ▼0.80
Media Library /wp-admin/upload.php1,381 ▼74.18 ▲0.0498.05 ▼1.8941.45 ▼9.69
EasyBackendStyle /wp-admin/options-general.php?page=easyBackendStyle3,0043.20118.0728.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_easyBackendStyle
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: ebsPlugin in wp-content/plugins/easybackendstyle/ebs_SettingsSubMenu.php on line 21
    • > PHP Fatal error
      Uncaught TypeError: Typed property ebs_SettingsSubMenu::$ebs must be an instance of easyBackendStyle, null used in wp-content/plugins/easybackendstyle/ebs_SettingsSubMenu.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: admin theme, customize admin, backend interface design, backend theme, wordpress customization...

easybackendstyle/easyBackendStyle.php 85% from 13 tests

"EasyBackendStyle" version 2.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 219 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("easybackendstyle.php" instead of "easyBackendStyle.php")

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 plugin1,685 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS210729568
Markdown11210553
PHP47481323
JavaScript14120184
PO File1161652
SVG5005

PHP code Passed 2 tests

Analyzing 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.13
Average class complexity5.33
▷ Minimum class complexity4.00
▷ Maximum class complexity7.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ 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

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