72% the-admin-theme-experience

Code Review | The Admin Theme Experience

WordPress plugin The Admin Theme Experience scored72%from 54 tests.

About plugin

  • Plugin page: the-admin-theme-e...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-3.8.0
  • WordPress version: 6.3.1
  • First release: Dec 24, 2013
  • Latest release: Dec 24, 2013
  • Number of updates: 4
  • Update frequency: every 65.0 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,406 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by The Admin Theme Experience
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.27 ▼4.54
Dashboard /wp-admin3.31 ▲0.0152.42 ▼0.05
Posts /wp-admin/edit.php3.36 ▲0.0146.36 ▼3.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.85 ▼9.94
Media Library /wp-admin/upload.php3.24 ▲0.0138.23 ▲3.94
Your Admin Theme /wp-admin/users.php?page=adminthemes3.2531.58

Server storage [IO: ▲1.00MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by The Admin Theme Experience
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▲0.002.14 ▲0.2144.74 ▲0.63
Dashboard /wp-admin2,201 ▲245.53 ▼0.0390.14 ▼12.0345.00 ▲0.84
Posts /wp-admin/edit.php2,106 ▲91.99 ▲0.0136.07 ▼0.3736.34 ▼0.42
Add New Post /wp-admin/post-new.php1,533 ▲523.14 ▲0.09684.04 ▼1.4456.19 ▲6.03
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.01108.76 ▲9.1748.26 ▲5.09
Your Admin Theme /wp-admin/users.php?page=adminthemes1,0591.9924.4044.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=adminthemes
    • > Notice in wp-content/plugins/the-admin-theme-experience/adminthemes.php+54
    Undefined variable: activeTheme
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=adminthemes
    • > Notice in wp-content/plugins/the-admin-theme-experience/adminthemes.php+54
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/users.php?page=adminthemes
    • > Notice in wp-content/plugins/the-admin-theme-experience/adminthemes.php+102
    Undefined index: author
    • > GET request to /wp-admin/users.php?page=adminthemes
    • > Notice in wp-content/plugins/the-admin-theme-experience/adminthemes.php+105
    Undefined index: name

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-admin-theme-experience/the-admin-theme-experience.php:85
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_option() in wp-content/plugins/the-admin-theme-experience/adminthemes.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/users.php?page=adminthemes
    • > Network (severe)
    wp-content/plugins/the-admin-theme-experience/themes/style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: admin color scheme theme

the-admin-theme-experience/the-admin-theme-experience.php Passed 13 tests

"The Admin Theme Experience" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
POC for proper theme's for the admin area.

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 plugin5,118 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
CSS251,4547064,526
Sass71445475
PHP23866117

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions6
▷ Named functions6100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.58MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
themes/ocean/screenshot.png56.11KB33.72KB▼ 39.90%
themes/blue/screenshot.png56.16KB33.74KB▼ 39.92%
themes/coffee/screenshot.png56.24KB33.47KB▼ 40.48%
themes/ectoplasm/screenshot.png56.27KB33.78KB▼ 39.97%
themes/sunrise/screenshot.png56.17KB33.63KB▼ 40.13%