84% wp-admin-classic

Code Review | wp-admin classic

WordPress plugin wp-admin classic scored84%from 54 tests.

About plugin

  • Plugin page: wp-admin-classic
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Dec 15, 2013
  • Latest release: Jan 4, 2014
  • Number of updates: 19
  • Update frequency: every 1.1 days
  • Top authors: mch0lic (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

20+ active /5,366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.78ms] Passed 4 tests

A check of server-side resources used by wp-admin classic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0448.16 ▲7.23
Dashboard /wp-admin3.34 ▲0.0448.71 ▲1.77
Posts /wp-admin/edit.php3.40 ▲0.0449.14 ▼4.26
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.30 ▼0.83
Media Library /wp-admin/upload.php3.27 ▲0.0334.11 ▼3.79

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

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

Browser metrics Passed 4 tests

wp-admin classic: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,783 ▲3713.26 ▼1.141.66 ▼0.2243.81 ▼2.92
Dashboard /wp-admin2,199 ▲84.87 ▼1.0396.80 ▼5.0523.86 ▼20.22
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0538.69 ▲4.3629.91 ▼7.56
Add New Post /wp-admin/post-new.php6,252 ▲4,71921.65 ▼1.51866.84 ▲178.8831.96 ▼25.18
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0994.31 ▼18.3317.42 ▼28.03

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 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-classic/wpadmin-classic.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 ("Classic" WP Admin theme running on WordPress 3.8) image missing
The official readme.txt is a good inspiration

wp-admin-classic/wpadmin-classic.php 92% from 13 tests

The primary PHP file in "wp-admin classic" version 1.0.8 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-admin-classic.php" instead of "wpadmin-classic.php")

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
Good job! No executable or dangerous file extensions detected19,869 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
CSS454,2461,10719,770
PHP1242599

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
73 PNG files occupy 0.38MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/align-right.png0.50KB0.57KB0.00%
images/arrows-dark-vs-2x.png0.74KB0.78KB0.00%
images/post-formats32.png7.65KB5.04KB▼ 34.03%
images/icons32-vs-2x.png37.10KB21.51KB▼ 42.03%
images/press-this.png0.41KB0.44KB0.00%