84% good-garage-scheme

Code Review | Good Garage Scheme

WordPress plugin Good Garage Scheme scored 84% from 54 tests.

About plugin

  • Plugin page: good-garage-scheme
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 1, 2017
  • Latest release: Mar 3, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: nmthomas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.58ms] Passed 4 tests

A check of server-side resources used by Good Garage Scheme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.22 ▼3.85
Dashboard /wp-admin3.31 ▲0.0144.49 ▼7.94
Posts /wp-admin/edit.php3.36 ▲0.0040.27 ▼5.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.79 ▼4.89
Media Library /wp-admin/upload.php3.23 ▲0.0034.71 ▼1.90
Good Garage Scheme /wp-admin/options-general.php?page=good-garage-scheme3.2027.97

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

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

Browser metrics Passed 4 tests

Good Garage Scheme: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.23 ▼1.091.95 ▲0.0641.18 ▼2.19
Dashboard /wp-admin2,210 ▲186.06 ▲1.13102.63 ▼6.5539.96 ▼0.79
Posts /wp-admin/edit.php2,093 ▲72.02 ▲0.0337.33 ▲0.9333.23 ▼2.13
Add New Post /wp-admin/post-new.php1,536 ▲1723.15 ▼0.01646.16 ▼53.0562.91 ▲6.10
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0193.52 ▼17.1641.89 ▼7.44
Good Garage Scheme /wp-admin/options-general.php?page=good-garage-scheme7982.0530.2337.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/good-garage-scheme/good-garage-scheme.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Requires at least: Version not formatted correctly
The official readme.txt is a good inspiration

good-garage-scheme/good-garage-scheme.php Passed 13 tests

The main PHP file in "Good Garage Scheme" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
Show Good Garage Scheme widget on your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116946

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
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
Namespaces0
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin