89% gambit-cache-menus

Code Review | Gambit Cache Menus

WordPress plugin Gambit Cache Menus scored89%from 54 tests.

About plugin

  • Plugin page: gambit-cache-menus
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Sep 19, 2014
  • Latest release: Sep 19, 2014
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: bfintal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,162 total downloads


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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.44ms] Passed 4 tests

An overview of server-side resources used by Gambit Cache Menus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.60 ▼4.78
Dashboard /wp-admin3.33 ▼0.0150.27 ▼15.85
Posts /wp-admin/edit.php3.38 ▲0.0352.44 ▼0.95
Add New Post /wp-admin/post-new.php5.91 ▲0.03100.53 ▲7.21
Media Library /wp-admin/upload.php3.25 ▲0.0335.19 ▼4.17

Server storage [IO: ▲0.02MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Gambit Cache Menus: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.60 ▼0.151.66 ▼0.5441.88 ▼2.72
Dashboard /wp-admin2,198 ▲285.65 ▼0.0491.73 ▼9.8540.34 ▲0.09
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0245.79 ▲5.6837.14 ▲1.08
Add New Post /wp-admin/post-new.php1,545 ▼023.42 ▼0.02680.33 ▲76.5358.70 ▲2.80
Media Library /wp-admin/upload.php1,400 ▲34.15 ▼0.04122.91 ▲23.3548.08 ▲4.16

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === gambit-cache-menus === )
You can take inspiration from this readme.txt

gambit-cache-menus/plugin.php 85% from 13 tests

"Gambit Cache Menus" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 264 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("gambit-cache-menus.php" instead of "plugin.php")

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
There were no executable files found in this plugin74 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods116.67%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin