10% quick-admin-launcher

Code Review | Quick Admin Launcher

WordPress plugin Quick Admin Launcher scored10%from 54 tests.

About plugin

  • Plugin page: quick-admin-launcher
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 7, 2023
  • Latest release: Jun 7, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: dbeja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /290 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/quick-admin-launcher/quick-admin-launcher.php+55
    Uncaught Error: Class 'QUICKAL\QuickAL' not found in wp-content/plugins/quick-admin-launcher/quick-admin-launcher.php:55
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.22ms] Passed 4 tests

Analyzing server-side resources used by Quick Admin Launcher
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.60 ▼1.32
Dashboard /wp-admin3.31 ▼0.0449.95 ▼18.53
Posts /wp-admin/edit.php3.36 ▲0.0047.17 ▼3.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.68 ▼18.01
Media Library /wp-admin/upload.php3.23 ▲0.0038.48 ▲2.32

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Quick Admin Launcher
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.012.14 ▲0.1544.40 ▲1.70
Dashboard /wp-admin2,209 ▲215.90 ▲1.03109.36 ▼9.1342.50 ▼0.21
Posts /wp-admin/edit.php2,086 ▼62.01 ▼0.0137.08 ▼0.6633.59 ▼0.09
Add New Post /wp-admin/post-new.php1,519 ▼223.15 ▼0.00644.57 ▲35.3054.75 ▲1.94
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.00105.99 ▼0.2248.80 ▼0.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/quick-admin-launcher/quick-admin-launcher.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/quick-admin-launcher/templates/quickal-modal.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt might help

quick-admin-launcher/quick-admin-launcher.php 92% from 13 tests

The main file in "Quick Admin Launcher" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin512 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP575182367
JavaScript146113145

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo-red.png5.03KB2.57KB▼ 48.83%
dist/823fa92cfa99ba829852.png4.57KB2.57KB▼ 43.68%
dist/abbdc0658bd39c98843e.png5.03KB2.57KB▼ 48.83%
img/logo.png4.57KB2.57KB▼ 43.68%