45% adminify

Code Review | WP Adminify - WordPress Admin Dashboard Customization Toolkit

WordPress plugin WP Adminify - WordPress Admin Dashboard Customization Toolkit scored 45% from 54 tests.

About plugin

  • Plugin page: adminify
  • Plugin version: 2.0.7
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.3
  • WordPress version: 5.9.2
  • First release: Feb 18, 2021
  • Latest release: Mar 27, 2022
  • Number of updates: 28
  • Update frequency: every 14.4 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

400+ active / 6,841 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲2.81MB] [CPU: ▼318.06ms] 75% from 4 tests

An overview of server-side resources used by WP Adminify - WordPress Admin Dashboard Customization Toolkit
The following require your attention
  • RAM: Try to keep total memory usage under 10MB (currently 10.89MB on /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php)
PageMemory (MB)CPU Time (ms)
Home /5.97 ▲2.4669.37 ▲15.23
Dashboard /wp-admin7.32 ▲3.9166.75 ▲30.67
Posts /wp-admin/edit.php6.55 ▲2.9172.86 ▼121.02
Add New Post /wp-admin/post-new.php9.85 ▲2.88117.15 ▼1,190.68
Media Library /wp-admin/upload.php6.27 ▲2.9749.38 ▲24.25
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php10.8993.74
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius6.6149.84
Notices /wp-admin/index.php?page=wp-adminify-notices6.2245.84
/wp-admin/index.php?page=wp-adminify-setup-wizard6.1941.60

Server storage [IO: ▲11.53MB] [DB: ▲0.23MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 655 new files
Database: 2 new tables, 19 new options
New tables
wp_adminify_activity_logs
wp_adminify_page_speed
New WordPress options
sidebar_widgets
jltwp_adminify_login
widget_recent-posts
fs_active_plugins
_wpadminify_custom_js_css
adminify_activity_logs_version
wp_adminify_version
post_folder_children
widget_recent-comments
_adminify_notification_bar
...

Browser metrics Passed 4 tests

Checking browser requirements for WP Adminify - WordPress Admin Dashboard Customization Toolkit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /6,400 ▲2,65617.42 ▲1.527.29 ▲1.042.57 ▲0.24
Dashboard /wp-admin5,397 ▲2,5437.88 ▲1.471,208.00 ▲1,068.43275.06 ▲110.49
Posts /wp-admin/edit.php4,122 ▲1,4315.13 ▲1.69116.27 ▲51.66227.94 ▲78.36
Add New Post /wp-admin/post-new.php2,372 ▲59922.17 ▲0.31422.16 ▼67.49260.59 ▲104.14
Media Library /wp-admin/upload.php3,146 ▲1,4517.74 ▲2.00177.39 ▲37.55302.04 ▲110.03
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php16,38523.50644.12373.35
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius2,4723.6394.01134.64
Notices /wp-admin/index.php?page=wp-adminify-notices2,1673.6099.64217.63
/wp-admin/index.php?page=wp-adminify-setup-wizard8205.67108.1979.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/adminify/lib/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_adminify_activity_logs
    • wp_adminify_page_speed
  • This plugin does not fully uninstall, leaving 18 options in the database
    • jltwp_adminify_login
    • sidebar_widgets
    • widget_recent-posts
    • wp_adminify_version
    • wp_adminify_page_speed_db_version
    • fs_gdpr
    • fs_active_plugins
    • _wp_adminify_sidebar_settings
    • widget_recent-comments
    • post_folder_children
    • ...

Smoke tests 0% 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)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
    Trying to get property 'title' of non-object

SRP 0% 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
Please fix the following
  • 8× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/Inc/templates/template-03.php
    • > /wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/Inc/login-styles.php
    • > /wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/Inc/templates/template-02.php
    • > /wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/Inc/templates/template-04.php
    • > /wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/Inc/templates/template-01.php
    • > /wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/Inc/footer-slideshow.php
    • > /wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/Inc/login-custom-styles.php
    • > /wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/Inc/footer-video.php
  • 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPAdminify\\Inc\\Modules\\AdminColumns\\Lib\\Inc\\Carbon_Admin_Columns_Manager' not found in wp-content/plugins/adminify/Inc/Modules/AdminColumns/Lib/Inc/Carbon_Admin_Columns_Manager_Post.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPAdminify\\Inc\\Admin\\AdminSettingsModel' not found in wp-content/plugins/adminify/Inc/Admin/Options/AdminBar.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WPAdminify\\Inc\\Base_Model' not found in wp-content/plugins/adminify/Inc/Admin/AdminSettingsModel.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPAdminify\\Inc\\Base_Model' not found in wp-content/plugins/adminify/Inc/Modules/NotificationBar/Inc/NotificationBarModel.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WPAdminify\\Inc\\Base_Model' not found in wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/Inc/Customize_Model.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPAdminify\\Inc\\Base_Model' not found in wp-content/plugins/adminify/Inc/Modules/MenuEditor/MenuEditorModel.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPAdminify\\Inc\\Base_Model' not found in wp-content/plugins/adminify/Inc/Modules/CustomHeaderFooter/CustomHeaderFooterModel.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/Inc/login-preset-styles.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPAdminify\\Inc\\Admin\\AdminSettingsModel' not found in wp-content/plugins/adminify/Inc/Admin/Options/Assets_Manager.php:16
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/Inc/google-font.php:4

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)
These are user-side errors you should fix
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/index.php?page=wp-adminify-setup-wizard
    • > Javascript (severe) in unknown
    /wp-content/plugins/adminify/assets/js/wp-adminify.js?ver=2.0.7 119:68 Uncaught TypeError: $(...).fast is not a function
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Console-api (warning) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'get')" "TypeError: Cannot read properties of undefined (reading 'get')\n at updateLoginBackground (/wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/assets/js/preview.js?ver=2.0.7:226:115)\n at Function.\u003Canonymous> (/wp-content/plugins/adminify/Inc/Modules/LoginCustomizer/assets/js/preview.js?ver=2.0.7:893:3)\n at c (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:28327)\n at Object.fireWith (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:29072)\n at Function.trigger (/wp-includes/js/customize-base.min.js?ver=5.9.2:2:994)\n at HTMLDocument.\u003Canonymous> (/wp-includes/js/customize-preview.min.js?ver=5.9.2:2:10682)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340)" undefined
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31702 Uncaught TypeError: Cannot read properties of undefined (reading 'get')

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (WP Adminify overview), #2 (Admin Columns module), #3 (Page, Post, Post type, & Media Folders), #4 (Google Pagespeed Insights For WordPress), #5 (Disable Admin Notices), #6 (Dashboard Menu Editor), #7 (WordPress Login Customizer), #8 (Activity Logs For WordPress Website), #9 (Disable Comments for WordPress)
The official readme.txt is a good inspiration

adminify/adminify.php 92% from 13 tests

The primary PHP file in "WP Adminify - WordPress Admin Dashboard Customization Toolkit" version 2.0.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 297 characters long)

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin89,492 lines of code in 525 files:
LanguageFilesBlank linesComment linesLines of code
PHP35414,98321,14067,512
CSS10156556910,557
JavaScript332,1581,0289,431
SVG37121,992

PHP code 0% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 174)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity30.86
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity174.00
Code structure
Namespaces35
Interfaces0
Traits0
Classes262
▷ Abstract classes155.73%
▷ Concrete classes24794.27%
▷ Final classes00.00%
Methods2,470
▷ Static methods30812.47%
▷ Public methods2,09684.86%
▷ Protected methods381.54%
▷ Private methods33613.60%
Functions168
▷ Named functions15592.26%
▷ Anonymous functions137.74%
Constants138
▷ Global constants11281.16%
▷ Class constants2618.84%
▷ Public constants26100.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
72 PNG files occupy 1.01MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/freemius-pricing/dd89563360f0272635c8f0ab7d7f1402.png11.80KB3.94KB▼ 66.64%
Inc/Modules/LoginCustomizer/assets/images/layouts/width-full.png2.04KB0.61KB▼ 70.30%
assets/vendors/vegas/overlays/05.png0.10KB0.10KB0.00%
Inc/Modules/LoginCustomizer/assets/images/layouts/form-left-center.png1.01KB1.11KB0.00%
Inc/Modules/LoginCustomizer/assets/images/layouts/form-right-center.png1.02KB1.16KB0.00%