79% quick-admin

Code Review | Quick Admin

WordPress plugin Quick Admin scored79%from 54 tests.

About plugin

  • Plugin page: quick-admin
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2014
  • Latest release: May 25, 2016
  • Number of updates: 17
  • Update frequency: every 40.7 days
  • Top authors: rabmalin (94.12%)emanweb (11.76%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /4,377 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.72ms] Passed 4 tests

A check of server-side resources used by Quick Admin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.22 ▼1.36
Dashboard /wp-admin3.37 ▲0.0344.28 ▼25.91
Posts /wp-admin/edit.php3.42 ▲0.0744.49 ▲2.22
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.42 ▼5.84
Media Library /wp-admin/upload.php3.29 ▲0.0639.10 ▲7.27
All Qlinks /wp-admin/edit.php?post_type=qa_link3.3435.35
Settings /wp-admin/admin.php?page=quick-admin-settings3.2930.09
Quick Admin /wp-admin/admin.php?page=quick-admin-links3.3130.07
Add New /wp-admin/post-new.php?post_type=qa_link3.4146.34

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
qa_plugin_options

Browser metrics Passed 4 tests

A check of browser resources used by Quick Admin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲13514.21 ▼0.511.81 ▼0.1743.96 ▲0.54
Dashboard /wp-admin2,299 ▲1225.55 ▲0.0284.57 ▼19.5140.77 ▼2.88
Posts /wp-admin/edit.php2,174 ▲742.01 ▲0.0040.73 ▲0.5635.07 ▼3.94
Add New Post /wp-admin/post-new.php1,588 ▲6218.64 ▼4.96660.06 ▲34.5168.71 ▲10.82
Media Library /wp-admin/upload.php1,468 ▲684.24 ▲0.0498.79 ▲4.6142.17 ▲0.97
All Qlinks /wp-admin/edit.php?post_type=qa_link1,1381.9531.4429.75
Settings /wp-admin/admin.php?page=quick-admin-settings1,0971.9435.4526.79
Quick Admin /wp-admin/admin.php?page=quick-admin-links1,2872.3862.3534.10
Add New /wp-admin/post-new.php?post_type=qa_link2,2957.76169.3760.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/quick-admin/admin/views/admin-right.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/quick-admin/admin/class-quick-admin-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/quick-admin/admin/views/admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/quick-admin/admin/views/links.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: adopt-me, dashboard, widget, administration, link...

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

The main PHP file in "Quick Admin" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Add Quick Links in your admin dashboard and admin bar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin986 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP9274378687
JavaScript32892265
CSS13134

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity27.50
▷ Minimum class complexity12.00
▷ Maximum class complexity43.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods38
▷ Static methods821.05%
▷ Public methods3078.95%
▷ Protected methods12.63%
▷ Private methods718.42%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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
PNG images were not found in this plugin