84% turbo-admin

Code Review | Turbo Admin

WordPress plugin Turbo Admin scored84%from 54 tests.

About plugin

  • Plugin page: turbo-admin
  • Plugin version: 1.13.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: May 4, 2021
  • Latest release: May 31, 2023
  • Number of updates: 28
  • Update frequency: every 27.0 days
  • Top authors: magicroundabout (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /3,492 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.01ms] Passed 4 tests

This is a short check of server-side resources used by Turbo Admin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.80 ▼4.58
Dashboard /wp-admin3.39 ▲0.0460.02 ▼9.19
Posts /wp-admin/edit.php3.44 ▲0.0851.62 ▼0.22
Add New Post /wp-admin/post-new.php5.99 ▲0.1086.57 ▼18.03
Media Library /wp-admin/upload.php3.31 ▲0.0836.62 ▲0.31

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Turbo Admin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,506 ▲74513.52 ▼0.772.87 ▲1.0642.13 ▼0.40
Dashboard /wp-admin2,524 ▲3445.88 ▲0.2393.00 ▼1.0581.89 ▲40.04
Posts /wp-admin/edit.php2,429 ▲3292.30 ▲0.2736.15 ▼1.2345.86 ▲8.98
Add New Post /wp-admin/post-new.php1,784 ▲25823.32 ▲0.16752.16 ▲83.2547.92 ▼5.09
Media Library /wp-admin/upload.php1,729 ▲3324.48 ▲0.24103.20 ▲1.6782.67 ▲37.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function TurboAdmin\\add_action() in wp-content/plugins/turbo-admin/turbo-admin.php:30

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: menu, shortcuts, commands

turbo-admin/turbo-admin.php 92% from 13 tests

The primary PHP file in "Turbo Admin" version 1.13.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin6,449 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript306391,2175,674
CSS16939544
PHP13228230
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin