83% setmore-appointments

Code Review | Setmore

WordPress plugin Setmore scored83%from 54 tests.

About plugin

  • Plugin page: setmore-appointments
  • Plugin version: 12.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.2-6.3.1
  • WordPress version: 6.3.1
  • First release: May 21, 2012
  • Latest release: Sep 20, 2023
  • Number of updates: 108
  • Update frequency: every 38.4 days
  • Top authors: davidfull (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

4,000+ active /65,450 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.09MB] [CPU: ▼3.62ms] Passed 4 tests

This is a short check of server-side resources used by Setmore
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0834.85 ▼8.60
Dashboard /wp-admin3.40 ▲0.0948.91 ▼1.27
Posts /wp-admin/edit.php3.45 ▲0.0954.61 ▲0.79
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.15 ▼5.40
Media Library /wp-admin/upload.php3.32 ▲0.0939.61 ▲1.36

Server storage [IO: ▲1.98MB] [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: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_setmore_widget
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Setmore
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6513.58 ▼0.801.82 ▼0.1841.32 ▼4.11
Dashboard /wp-admin2,220 ▲534.88 ▼0.6998.03 ▼3.7675.93 ▲28.48
Posts /wp-admin/edit.php2,108 ▲81.98 ▼0.0739.87 ▲4.9437.17 ▲1.64
Add New Post /wp-admin/post-new.php1,689 ▲16322.52 ▲4.75703.78 ▲60.3062.25 ▲8.26
Media Library /wp-admin/upload.php1,411 ▲144.26 ▼0.1799.84 ▼1.4489.20 ▲45.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_setmore_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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 50% 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/setmore-appointments/setmore.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === setmore-appointments === )
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Once the Setmore Wordpress Plugin is installed and configured, you'll see the "Book Appointment" button on your blog page.), #2 (Clicking the "Book Appointment" button displays the booking page that helps customers initiate the booking process.), #3 (Once the Setmore Wordpress plugin is added and installed, the plugin appears under "Plugins." Click "Activate" to get started.), #4 (Click the "Setmore Icon" in the left sidebar. Either log in or sign up if you do not have a Setmore account. Once done, make sure to hit "Save Changes."), #5 (Navigate to Appearance > Widgets and find the Setmore Appointments Widget.), #6 (Drag this widget to Main Sidebar on the right, or into whichever sidebar you'd like it included within. Once done, the "Book Appointment" button will start to appear on your Wordpress powered website.)
The official readme.txt is a good inspiration

setmore-appointments/setmore.php 92% from 13 tests

This is the main PHP file of "Setmore" version 12.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("setmore-appointments.php" instead of "setmore.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,691 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS11205788
PHP33351547
JavaScript2287270
SVG40086

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 1.32MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-7.png215.57KB68.46KB▼ 68.24%
setmore.png0.38KB0.20KB▼ 48.45%
arrow-down.png0.28KB0.27KB▼ 4.88%
screenshot-2.png189.21KB54.07KB▼ 71.42%
screenshot-5.png67.95KB17.91KB▼ 73.64%