74% admin-quick-panel

Code Review | Admin Quick Panel

WordPress plugin Admin Quick Panel scored74%from 54 tests.

About plugin

  • Plugin page: admin-quick-panel
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 6.3.1
  • First release: Jul 24, 2019
  • Latest release: Apr 16, 2022
  • Number of updates: 11
  • Update frequency: every 90.6 days
  • Top authors: ivanchernyakov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,003 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.99MB] [CPU: ▲23.60ms] Passed 4 tests

This is a short check of server-side resources used by Admin Quick Panel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.78 ▲5.3164.90 ▲24.98
Dashboard /wp-admin8.80 ▲5.4973.18 ▲22.95
Posts /wp-admin/edit.php8.80 ▲5.4480.38 ▲29.98
Add New Post /wp-admin/post-new.php9.59 ▲3.70114.79 ▲16.47
Media Library /wp-admin/upload.php8.80 ▲5.5773.26 ▲39.39
Admin Quick Panel /wp-admin/options-general.php?page=admin-quick-panel8.8063.84
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.8058.49

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 173 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
fs_accounts
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
fs_gdpr
fs_debug_mode
widget_recent-comments
db_upgraded
fs_active_plugins

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Quick Panel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15013.48 ▼0.721.51 ▼0.3423.75 ▼18.04
Dashboard /wp-admin2,299 ▲1115.19 ▲0.31115.33 ▲8.8949.00 ▲6.53
Posts /wp-admin/edit.php2,199 ▲1102.24 ▲0.2241.17 ▲0.6645.81 ▲12.17
Add New Post /wp-admin/post-new.php1,611 ▲9722.09 ▲4.57657.28 ▼29.7737.48 ▼25.64
Media Library /wp-admin/upload.php1,482 ▲944.37 ▲0.1894.23 ▼4.2643.73 ▼3.08
Admin Quick Panel /wp-admin/options-general.php?page=admin-quick-panel1,0551.9932.6755.76
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,1122.0131.6426.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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/admin-quick-panel/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 10 options in the database
    • fs_accounts
    • can_compress_scripts
    • fs_active_plugins
    • fs_gdpr
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • fs_debug_mode
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/admin-quick-panel/functions/aqpanel-core-functions.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

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

The main PHP file in "Admin Quick Panel" ver. 1.2.6 adds more information about the plugin and also serves as the entry point for this plugin
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 check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected31,765 lines of code in 131 files:
LanguageFilesBlank linesComment linesLines of code
PHP1137,31316,21830,967
CSS121719321
JavaScript43764236
Markdown1680214
JSON10027

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity82.26
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes50
▷ Abstract classes24.00%
▷ Concrete classes4896.00%
▷ Final classes00.00%
Methods1,159
▷ Static methods17515.10%
▷ Public methods81870.58%
▷ Protected methods151.29%
▷ Private methods32628.13%
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

PNG files should be compressed to save space and minimize bandwidth usage
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/admin-quick-panel.png30.64KB15.01KB▼ 50.99%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%