72% boost360-for-doctors

Code Review | Boost360 for Doctors

WordPress plugin Boost360 for Doctors scored72%from 54 tests.

About plugin

  • Plugin page: boost360-for-doctors
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 17, 2020
  • Latest release: Jun 24, 2020
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: getboost360 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,314 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.68MB] [CPU: ▼20.08ms] Passed 4 tests

Analyzing server-side resources used by Boost360 for Doctors
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.15 ▼2.94
Dashboard /wp-admin3.33 ▲0.0244.38 ▼8.32
Posts /wp-admin/edit.php3.38 ▲0.0246.13 ▼4.00
Add New Post /wp-admin/post-new.php3.11 ▼2.7835.47 ▼65.05
Media Library /wp-admin/upload.php3.25 ▲0.0239.10 ▲2.77
Boost360 for Doctors /wp-admin/options-general.php?page=boost360-for-doctors3.2729.96

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Boost360 for Doctors: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.51 ▼0.797.70 ▲5.9036.90 ▼3.54
Dashboard /wp-admin2,211 ▲264.85 ▼1.03104.54 ▼2.0639.28 ▼3.96
Posts /wp-admin/edit.php2,097 ▲82.00 ▼0.0035.45 ▼5.6835.65 ▲0.64
Add New Post /wp-admin/post-new.php1,530 ▼1218.36 ▼0.13649.59 ▲49.8157.13 ▲4.42
Media Library /wp-admin/upload.php1,390 ▲24.20 ▼0.0195.85 ▼4.1043.06 ▼2.25
Boost360 for Doctors /wp-admin/options-general.php?page=boost360-for-doctors9092.0129.7549.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=boost360-for-doctors
    • > Notice in wp-content/plugins/boost360-for-doctors/admin/partials/boost360-for-doctors-admin-display.php+27
    Trying to access array offset on value of type bool

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/boost360-for-doctors/public/partials/boost360-for-doctors-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/boost360-for-doctors/admin/partials/boost360-for-doctors-admin-display.php:22

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 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 ( === boost360-for-doctors === )
You can take inspiration from this readme.txt

boost360-for-doctors/boost360-for-doctors.php 92% from 13 tests

The main file in "Boost360 for Doctors" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 315 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin450 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12142584408
SVG10020
CSS21816
JavaScript24546

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2676.47%
▷ Protected methods00.00%
▷ Private methods823.53%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.67MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png7.17KB4.55KB▼ 36.64%
assets/screenshot-1.png275.34KB77.23KB▼ 71.95%
assets/banner-1544x500.png282.32KB144.15KB▼ 48.94%
assets/banner-772x250.png103.41KB44.33KB▼ 57.13%
assets/icon-256x256.png21.80KB12.04KB▼ 44.75%