68% admin-quick-panel

Code Review | Admin Quick Panel

WordPress plugin Admin Quick Panel scored 68% from 54 tests.

About plugin

  • Plugin page: admin-quick-panel
  • Plugin version: 1.2.5
  • PHP compatiblity: 5.5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.6.0
  • WordPress version: 5.9.2
  • First release: Jul 24, 2019
  • Latest release: Dec 31, 2020
  • Number of updates: 10
  • Update frequency: every 52.6 days
  • Top authors: ivanchernyakov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 652 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲4.75MB] [CPU: ▼264.30ms] Passed 4 tests

An overview of server-side resources used by Admin Quick Panel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /8.62 ▲5.1179.24 ▲28.38
Dashboard /wp-admin8.64 ▲5.2464.06 ▲29.68
Posts /wp-admin/edit.php8.64 ▲5.0061.75 ▲24.35
Add New Post /wp-admin/post-new.php10.63 ▲3.64124.07 ▼1,132.32
Media Library /wp-admin/upload.php8.64 ▲5.3449.20 ▲22.40
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius8.6450.46
Admin Quick Panel /wp-admin/options-general.php?page=admin-quick-panel8.6449.24

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 171 new files
Database: no new tables, 4 new options
New WordPress options
fs_gdpr
fs_accounts
fs_active_plugins
fs_debug_mode

Browser metrics Passed 4 tests

Checking browser requirements for Admin Quick Panel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,884 ▲16215.75 ▼0.236.29 ▲0.671.97 ▼0.29
Dashboard /wp-admin3,014 ▲1536.97 ▲0.78116.95 ▼17.87199.16 ▲36.19
Posts /wp-admin/edit.php2,829 ▲1573.56 ▲0.3270.57 ▲6.49192.59 ▲52.81
Add New Post /wp-admin/post-new.php1,779 ▲11820.75 ▲4.14415.82 ▼19.27233.06 ▲82.88
Media Library /wp-admin/upload.php1,815 ▲1146.12 ▲0.59115.66 ▼34.23205.74 ▲16.75
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius1,5273.1657.59113.25
Admin Quick Panel /wp-admin/options-general.php?page=admin-quick-panel1,3793.1657.77158.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/admin-quick-panel/freemius/includes/class-freemius.php+8540
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 4 options in the database
    • fs_active_plugins
    • fs_accounts
    • fs_debug_mode
    • fs_gdpr

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/admin-quick-panel/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/admin-quick-panel/functions/aqpanel-core-functions.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/admin-quick-panel/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/admin-quick-panel/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/admin-quick-panel/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/admin-quick-panel/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/admin-quick-panel/freemius/templates/account/partials/addon.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/admin-quick-panel/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/admin-quick-panel/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/admin-quick-panel/freemius/templates/account/partials/addon.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

admin-quick-panel/admin-quick-panel.php Passed 13 tests

Analyzing the main PHP file in "Admin Quick Panel" version 1.2.5
103 characters long description:
Adds a menu to the right side. Add your favorite posts and other useful buttons there for quick access.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected31,423 lines of code in 129 files:
LanguageFilesBlank linesComment linesLines of code
PHP1137,28416,20830,866
CSS121719321
JavaScript43764236

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,895)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity81.94
▷ Minimum class complexity1.00
▷ Maximum class complexity2,895.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes50
▷ Abstract classes24.00%
▷ Concrete classes4896.00%
▷ Final classes00.00%
Methods1,160
▷ Static methods17515.09%
▷ Public methods81770.43%
▷ Protected methods151.29%
▷ Private methods32828.28%
Functions95
▷ Named functions95100.00%
▷ Anonymous functions00.00%
Constants123
▷ Global constants9879.67%
▷ Class constants2520.33%
▷ Public constants25100.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
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/admin-quick-panel.png30.64KB15.01KB▼ 50.99%