72% admin-classic-borders

Code Review | Admin Classic Borders

WordPress plugin Admin Classic Borders scored 72% from 54 tests.

About plugin

  • Plugin page: admin-classic-bor...
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.6
  • WordPress version: 5.9.2
  • First release: Nov 30, 2013
  • Latest release: Aug 14, 2016
  • Number of updates: 42
  • Update frequency: every 23.6 days
  • Top authors: Kelderic (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active / 3,330 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.35MB] [CPU: ▼313.79ms] Passed 4 tests

This is a short check of server-side resources used by Admin Classic Borders
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0156.92 ▲5.12
Dashboard /wp-admin3.27 ▼0.1421.72 ▼12.46
Posts /wp-admin/edit.php3.32 ▼0.3223.38 ▼13.17
Add New Post /wp-admin/post-new.php6.06 ▼0.9186.05 ▼1,222.89
Media Library /wp-admin/upload.php3.28 ▼0.0220.83 ▼6.62
Admin /wp-admin/themes.php?page=admin_classic_borders_optionspage3.2519.11

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 2 new options
New WordPress options
acb_options_extra
acb_options_main

Browser metrics Passed 4 tests

Admin Classic Borders: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,803 ▲4915.79 ▲0.226.15 ▲0.332.31 ▲0.16
Dashboard /wp-admin2,896 ▲356.12 ▼0.05114.20 ▼18.73154.37 ▼9.26
Posts /wp-admin/edit.php2,696 ▲53.23 ▼0.0163.39 ▲1.46137.48 ▼2.70
Add New Post /wp-admin/post-new.php1,757 ▲521.67 ▲0.86421.86 ▼25.03152.72 ▼4.62
Media Library /wp-admin/upload.php1,706 ▲85.50 ▼0.03141.27 ▲5.03192.71 ▲12.72
Admin /wp-admin/themes.php?page=admin_classic_borders_optionspage1,1623.2460.06122.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 2 options
    • acb_options_extra
    • acb_options_main

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=admin_classic_borders_optionspage
    • > Warning in wp-content/plugins/admin-classic-borders/components/options.php+92
    Illegal string offset 'lightopacity'
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=admin_classic_borders_optionspage
    • > Warning in wp-content/plugins/admin-classic-borders/components/options.php+114
    Illegal string offset 'darkopacity'
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=admin_classic_borders_optionspage
    • > Warning in wp-content/plugins/admin-classic-borders/components/options.php+70
    Illegal string offset 'bordertype'

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/admin-classic-borders/css/jquery-ui-1.10.3.custom.css.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-classic-borders/components/settings-link.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-classic-borders/components/register-and-enqueue.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/admin-classic-borders/admin-classic-borders.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-classic-borders/components/main.php:111
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-classic-borders/components/inactive-warning.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-classic-borders/components/options-page.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-classic-borders/components/options.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
5 plugin tags: mp6, borders, admin, style, backend

admin-classic-borders/admin-classic-borders.php 92% from 13 tests

The main file in "Admin Classic Borders" v. 1.7.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected733 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP815284607
JavaScript3931397
CSS10129

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
9 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_diagonals-thick_8_333333_40x40.png0.30KB0.15KB▼ 49.68%
css/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png0.25KB0.10KB▼ 57.94%
css/images/ui-bg_glass_40_111111_1x400.png0.25KB0.16KB▼ 36.92%
css/images/ui-bg_highlight-hard_40_aaaaaa_1x100.png0.25KB0.15KB▼ 38.49%
css/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png0.27KB0.18KB▼ 33.57%