90% setmore-plus

Code Review | Setmore Plus

WordPress plugin Setmore Plus scored 90% from 54 tests.

About plugin

  • Plugin page: setmore-plus
  • Plugin version: 3.7.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 5.9.2
  • First release: Jun 16, 2014
  • Latest release: Jan 18, 2019
  • Number of updates: 55
  • Update frequency: every 30.5 days
  • Top authors: cdillon27 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 21,284 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▼294.63ms] Passed 4 tests

Server-side resources used by Setmore Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1754.39 ▲4.07
Dashboard /wp-admin3.64 ▲0.2434.55 ▲2.08
Posts /wp-admin/edit.php3.87 ▲0.2340.49 ▼1.54
Add New Post /wp-admin/post-new.php7.11 ▲0.1493.53 ▼1,183.13
Media Library /wp-admin/upload.php3.52 ▲0.2327.31 ▲4.28
Setmore Plus /wp-admin/options-general.php?page=setmoreplus3.5023.35

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 3 new options
New WordPress options
setmoreplus_version
widget_setmore_plus_widget
setmoreplus

Browser metrics Passed 4 tests

Setmore Plus: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,014 ▲26016.27 ▲0.1912.83 ▲6.712.57 ▲0.15
Dashboard /wp-admin2,897 ▲366.14 ▼0.01114.88 ▼20.10157.88 ▼2.08
Posts /wp-admin/edit.php2,678 ▼133.24 ▲0.0064.35 ▼2.00140.30 ▼9.56
Add New Post /wp-admin/post-new.php1,671 ▲1018.02 ▲1.85396.87 ▼11.94162.15 ▲3.95
Media Library /wp-admin/upload.php1,700 ▲25.50 ▼0.05156.96 ▲16.16185.12 ▼1.36
Setmore Plus /wp-admin/options-general.php?page=setmoreplus1,9952.7758.31155.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_setmore_plus_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: adopt-me, scheduling, spa, calendar, salon...

setmore-plus/setmore-plus.php Passed 13 tests

"Setmore Plus" version 3.7.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Easy online appointments with a widget, shortcode, or menu link.

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
Success! There were no dangerous files found in this plugin1,780 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP62131881,152
CSS56250270
PO File1106150252
JavaScript32823106

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity20.67
▷ Minimum class complexity10.00
▷ Maximum class complexity28.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods50
▷ Static methods48.00%
▷ Public methods4896.00%
▷ Protected methods00.00%
▷ Private methods24.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
9 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/SetmorePlus-large.png36.68KB18.67KB▼ 49.10%
inc/colorbox/images/loading_background.png0.15KB0.15KB▼ 0.64%
images/SetmorePlus-menu-link.png64.43KB34.78KB▼ 46.03%
inc/colorbox/images/controls.png2.83KB1.28KB▼ 54.82%
css/lnt.png0.50KB0.52KB0.00%