84% basket-recovery

Code Review | Basket Recovery

WordPress plugin Basket Recovery scored84%from 54 tests.

About plugin

  • Plugin page: basket-recovery
  • Plugin version: 1.05
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.1-3.4
  • WordPress version: 6.3.1
  • First release: May 28, 2013
  • Latest release: Jun 4, 2013
  • Number of updates: 22
  • Update frequency: every 0.5 days
  • Top authors: BasketRecovery.net (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,034 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Basket Recovery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.16 ▲1.43
Dashboard /wp-admin3.31 ▼0.0442.35 ▼18.06
Posts /wp-admin/edit.php3.36 ▲0.0044.18 ▼4.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.65 ▼11.42
Media Library /wp-admin/upload.php3.23 ▲0.0033.15 ▼0.27

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Basket Recovery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.32 ▼1.431.72 ▼0.1940.12 ▲1.87
Dashboard /wp-admin2,206 ▲215.91 ▲0.06105.87 ▲0.4340.01 ▼2.53
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0239.71 ▲2.3735.23 ▼0.93
Add New Post /wp-admin/post-new.php1,533 ▲523.36 ▲5.03638.85 ▲7.5066.22 ▲12.91
Media Library /wp-admin/upload.php1,391 ▲34.28 ▲0.0892.84 ▼18.6441.12 ▼7.72

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% 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 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/basket-recovery/basket-recovery.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === basket-recovery === )
The official readme.txt might help

basket-recovery/basket-recovery.php 92% from 13 tests

The main PHP script in "Basket Recovery" version 1.05 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 232 characters long)

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
No dangerous file extensions were detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1296

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin