10% adminpress

Code Review | Adminpress - WordPress Admin Theme

WordPress plugin Adminpress - WordPress Admin Theme scored10%from 54 tests.

About plugin

  • Plugin page: adminpress
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2014
  • Latest release: Dec 12, 2014
  • Number of updates: 9
  • Update frequency: every 0.9 days
  • Top authors: bappi.d.great (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,125 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/adminpress/modules/class.footer.text.php+54
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.86MB] [CPU: ▼47.93ms] Passed 4 tests

A check of server-side resources used by Adminpress - WordPress Admin Theme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.3410.18 ▼29.42
Dashboard /wp-admin2.14 ▼1.1610.79 ▼37.80
Posts /wp-admin/edit.php2.14 ▼1.219.61 ▼41.73
Add New Post /wp-admin/post-new.php2.14 ▼3.7410.91 ▼82.78
Media Library /wp-admin/upload.php2.14 ▼1.0812.53 ▼21.44

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 35 new files
Database: 3 new tables, 7 new options
New tables
wp_admin_bar_table
wp_text_table
wp_widgets_table
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
jal_db_version
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Adminpress - WordPress Admin Theme: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,201 ▲45515.70 ▲1.281.76 ▲0.0643.30 ▼1.51
Dashboard /wp-admin2,509 ▲3216.65 ▲0.58124.66 ▲14.5743.52 ▼1.83
Posts /wp-admin/edit.php2,418 ▲3263.75 ▲1.7565.40 ▲23.8251.09 ▲12.93
Add New Post /wp-admin/post-new.php1,653 ▲13920.35 ▲2.79658.95 ▼31.0041.70 ▼30.44
Media Library /wp-admin/upload.php1,557 ▲1694.38 ▲0.18108.32 ▲11.6855.18 ▲11.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/adminpress/modules/class.footer.text.php+54
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_widgets_table
    • wp_text_table
    • wp_admin_bar_table
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • jal_db_version
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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)
Everything seems fine, however this is by no means 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
Please fix the following
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.dashboard.widget.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.text.change.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.custom.css.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.ajax.search.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/adminpress/includes/login-internal.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.custom.admin.bar.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.footer.text.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/adminpress/includes/admin-internal.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.menu.management.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.menu.style.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === adminpress === )
The official readme.txt is a good inspiration

adminpress/adminpress.php Passed 13 tests

The main PHP file in "Adminpress - WordPress Admin Theme" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
The best admin theme for wordpress

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
Success! There were no dangerous files found in this plugin3,070 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP142621091,657
SVG200749
CSS3673309
PO File1106111238
JavaScript2200117

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.78
Average class complexity18.73
▷ Minimum class complexity6.00
▷ Maximum class complexity45.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods65
▷ Static methods00.00%
▷ Public methods65100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected