72% admin-classic-borders

Code Review | Admin Classic Borders

WordPress plugin Admin Classic Borders scored72%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: 6.3.1
  • 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

50+ active /3,804 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.18MB] [CPU: ▼17.47ms] Passed 4 tests

Server-side resources used by Admin Classic Borders
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.54 ▼3.64
Dashboard /wp-admin3.13 ▼0.1728.90 ▼25.82
Posts /wp-admin/edit.php3.26 ▼0.0933.26 ▼14.01
Add New Post /wp-admin/post-new.php5.45 ▼0.4371.07 ▼21.30
Media Library /wp-admin/upload.php3.20 ▼0.0325.77 ▼8.76
Admin /wp-admin/themes.php?page=admin_classic_borders_optionspage3.1125.15

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

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

Browser metrics Passed 4 tests

Admin Classic Borders: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7513.18 ▼1.211.87 ▼0.0141.94 ▲1.80
Dashboard /wp-admin2,213 ▲225.84 ▼0.06101.16 ▼0.0240.84 ▲4.61
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0140.24 ▲2.9936.62 ▲4.39
Add New Post /wp-admin/post-new.php1,539 ▲623.22 ▼0.22621.04 ▼92.0552.26 ▼9.94
Media Library /wp-admin/upload.php1,395 ▲44.19 ▼0.0296.47 ▼5.1043.14 ▼1.83
Admin /wp-admin/themes.php?page=admin_classic_borders_optionspage9242.2835.6128.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • db_upgraded
    • acb_options_extra
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • acb_options_main

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 | 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/admin-classic-borders/css/jquery-ui-1.10.3.custom.css.php
  • 7× PHP files trigger server errors when accessed directly:
    • > 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_filter() in wp-content/plugins/admin-classic-borders/components/settings-link.php:18
    • > 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_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.php:52
    • > 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_action() in wp-content/plugins/admin-classic-borders/components/register-and-enqueue.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: backend, mp6, borders, style, admin

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

The principal PHP file in "Admin Classic Borders" v. 1.7.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)

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 plugin733 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP815284607
JavaScript3931397
CSS10129

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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_highlight-soft_50_aaaaaa_1x100.png0.27KB0.18KB▼ 33.57%
css/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png0.25KB0.10KB▼ 57.94%
css/images/ui-bg_glass_55_1c1c1c_1x400.png0.25KB0.16KB▼ 36.92%
css/images/ui-bg_inset-hard_55_ffeb80_1x100.png0.30KB0.15KB▼ 49.84%
css/images/ui-bg_inset-hard_45_cd0a0a_1x100.png0.32KB0.15KB▼ 52.16%