73% springbot

Code Review | Springbot

WordPress plugin Springbot scored73%from 54 tests.

About plugin

  • Plugin page: springbot
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.0
  • WordPress version: 6.3.1
  • First release: Mar 23, 2022
  • Latest release: May 10, 2022
  • Number of updates: 4
  • Update frequency: every 12.2 days
  • Top authors: rootsratedmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,417 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.86MB] [CPU: ▼58.87ms] Passed 4 tests

This is a short check of server-side resources used by Springbot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.24 ▼38.07
Dashboard /wp-admin2.16 ▼1.196.10 ▼57.36
Posts /wp-admin/edit.php2.16 ▼1.207.60 ▼41.50
Add New Post /wp-admin/post-new.php2.16 ▼3.736.48 ▼98.53
Media Library /wp-admin/upload.php2.16 ▼1.076.09 ▼31.78

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

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

Browser metrics Passed 4 tests

Springbot: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲18414.35 ▲0.161.93 ▲0.1139.35 ▼6.00
Dashboard /wp-admin2,241 ▲675.64 ▼0.0394.43 ▼11.0544.75 ▲3.27
Posts /wp-admin/edit.php2,155 ▲551.98 ▲0.0438.94 ▲0.1644.71 ▲10.45
Add New Post /wp-admin/post-new.php1,413 ▼11317.50 ▼5.53572.06 ▼100.0765.97 ▲13.39
Media Library /wp-admin/upload.php1,452 ▲524.19 ▼0.0795.27 ▼14.3043.19 ▼4.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/springbot/views/springbot-requirements-error.php+13
    Undefined variable: wp_version
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/springbot/views/springbot-requirements-error.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/springbot/woocommerce-springbot.php:19
    • > PHP Warning
      Use of undefined constant SPRINGBOT_NAME - assumed 'SPRINGBOT_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/springbot/views/springbot-requirements-error.php on line 2
    • > PHP Warning
      Use of undefined constant SPRINGBOT_REQUIRED_WP_VERSION - assumed 'SPRINGBOT_REQUIRED_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/springbot/views/springbot-requirements-error.php on line 12
    • > PHP Warning
      Use of undefined constant SPRINGBOT_REQUIRED_PHP_VERSION - assumed 'SPRINGBOT_REQUIRED_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/springbot/views/springbot-requirements-error.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Connect Springbot to your Wordpress site.), #2 (Seamlessly pull down data for marketing.), #3 (Send emails from Springbot and lead customers to your site.)
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

springbot/woocommerce-springbot.php 92% from 13 tests

The main PHP script in "Springbot" version 1.0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("springbot.php" instead of "woocommerce-springbot.php")

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 plugin1,691 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP132292901,121
Markdown21280568
make1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.90
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods62
▷ Static methods914.52%
▷ Public methods5283.87%
▷ Protected methods00.00%
▷ Private methods1016.13%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
No PNG files were detected