94% reimagined-admin

Code Review | Reimagined Admin Theme

WordPress plugin Reimagined Admin Theme scored 94% from 54 tests.

About plugin

  • Plugin page: reimagined-admin
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 5.8.1
  • First release: Jul 10, 2014
  • Latest release: Jul 10, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: ciaranbelfast (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 3,710 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.07MB] [CPU: ▼181.74ms] Passed 4 tests

Server-side resources used by Reimagined Admin Theme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0728.99 ▼0.17
Dashboard /wp-admin3.14 ▲0.0736.96 ▼4.54
Posts /wp-admin/edit.php3.23 ▲0.1240.19 ▲7.00
Add New Post /wp-admin/post-new.php5.50 ▲0.0676.16 ▼724.73
Media Library /wp-admin/upload.php3.09 ▲0.0828.87 ▲2.50
Reimagined /wp-admin/themes.php?page=reimagined_admin3.0624.12

Server storage [IO: ▲7.20MB] [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: 58 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Reimagined Admin Theme: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,651 ▲5016.30 ▲0.658.65 ▲2.0888.32 ▲6.33
Dashboard /wp-admin2,933 ▲346.25 ▲0.08120.86 ▼12.2680.25 ▼100.02
Posts /wp-admin/edit.php2,749 ▲93.29 ▲0.0770.43 ▲7.1673.57 ▼66.83
Add New Post /wp-admin/post-new.php2,307 ▼1,39116.27 ▼1.30424.64 ▼11.00168.70 ▲7.05
Media Library /wp-admin/upload.php1,752 ▼05.70 ▲0.19153.62 ▲3.86147.66 ▼33.75
Reimagined /wp-admin/themes.php?page=reimagined_admin1,5052.9761.6469.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reimagined-admin/reimagined-admin.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed: You can look at the official readme.txt

reimagined-admin/reimagined-admin.php Passed 13 tests

The entry point to "Reimagined Admin Theme" version 1.0 is a PHP file that has certain tags in its header comment area
34 characters long description:
A Reimagined WordPress Admin Theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected8,719 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,6641,3466,670
CSS7183631,199
PHP15128341
HTML1234259
SVG100250

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
29 PNG files occupy 4.90MB with 2.85MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
docs/assets/images/adminbackground.png13.18KB7.26KB▼ 44.93%
docs/assets/images/ablogo.png51.59KB17.36KB▼ 66.34%
screenshots/01_preview7.png164.89KB88.69KB▼ 46.21%
docs/assets/images/rename.png53.94KB16.57KB▼ 69.29%
screenshots/01_preview2.png457.10KB165.15KB▼ 63.87%