10% adminpress

Code Review | Adminpress - WordPress Admin Theme

WordPress plugin Adminpress - WordPress Admin Theme scored 10% 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: 5.9.2
  • 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 / 947 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > 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: ▼2.36MB] [CPU: ▼352.80ms] Passed 4 tests

Server-side resources used by Adminpress - WordPress Admin Theme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.01 ▼1.517.88 ▼39.51
Dashboard /wp-admin2.03 ▼1.387.29 ▼27.44
Posts /wp-admin/edit.php2.03 ▼1.626.34 ▼31.57
Add New Post /wp-admin/post-new.php2.03 ▼4.955.62 ▼1,312.66
Media Library /wp-admin/upload.php2.03 ▼1.275.23 ▼21.25

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: 3 new tables, 1 new option
New tables
wp_admin_bar_table
wp_text_table
wp_widgets_table
New WordPress options
jal_db_version

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 /4,324 ▲58018.90 ▲3.146.07 ▲0.022.72 ▲0.65
Dashboard /wp-admin3,304 ▲4438.17 ▲1.96141.93 ▲4.87157.66 ▲0.94
Posts /wp-admin/edit.php3,132 ▲4414.85 ▲1.6294.42 ▲34.16203.76 ▲63.88
Add New Post /wp-admin/post-new.php1,829 ▲5621.27 ▼0.52419.92 ▼44.92193.12 ▲26.75
Media Library /wp-admin/upload.php1,908 ▲2105.71 ▲0.16123.36 ▼13.75201.34 ▼40.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • 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)`
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_admin_bar_table
    • wp_widgets_table
    • wp_text_table
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • jal_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.styles.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.menu.style.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.login.php:5
    • > 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.footer.text.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.admin.bar.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.css.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPress' not found in wp-content/plugins/adminpress/modules/class.ajax.search.php:5

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 uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === adminpress === )
You can look at the official readme.txt

adminpress/adminpress.php Passed 13 tests

"Adminpress - WordPress Admin Theme" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
34 characters long description:
The best admin theme for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,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 is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
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
There are no PNG files in this plugin