10% easy-admin-theme

Code Review | Easy Admin Theme

WordPress plugin Easy Admin Theme scored10%from 54 tests.

About plugin

  • Plugin page: easy-admin-theme
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 12, 2012
  • Latest release: Sep 14, 2012
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: corsonr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,249 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/easy-admin-theme/easy-admin-theme.php+132
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.31ms] Passed 4 tests

A check of server-side resources used by Easy Admin Theme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.39 ▼10.23
Dashboard /wp-admin3.31 ▲0.0057.27 ▲8.11
Posts /wp-admin/edit.php3.36 ▲0.0048.91 ▲0.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.26 ▼19.30
Media Library /wp-admin/upload.php3.23 ▲0.0034.88 ▲3.38

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Admin Theme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.58 ▼1.161.92 ▲0.0241.29 ▼8.91
Dashboard /wp-admin2,206 ▲184.86 ▼1.04106.28 ▲0.2540.04 ▼3.44
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0140.74 ▲0.7335.74 ▲3.93
Add New Post /wp-admin/post-new.php1,542 ▲918.30 ▼5.11637.36 ▲31.3654.67 ▲2.41
Media Library /wp-admin/upload.php1,382 ▼64.24 ▼0.0897.44 ▼2.0742.13 ▼2.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/easy-admin-theme/easy-admin-theme.php on line 132
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-admin-theme/includes/eat_functions.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_themes() in wp-content/plugins/easy-admin-theme/includes/options.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-admin-theme/includes/scripts.php:13

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Choose the theme to display to Admins)
Please take inspiration from this readme.txt

easy-admin-theme/easy-admin-theme.php Passed 13 tests

The main PHP script in "Easy Admin Theme" version 1.0 is automatically included on every request by WordPress
46 characters long description:
Display a different theme for logged in admins

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin312 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5111112299
JavaScript13113

PHP code Passed 2 tests

A brief analysis 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.46
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png114.44KB49.26KB▼ 56.96%