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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 34.85 ▼8.60 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.91 ▼1.27 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 54.61 ▲0.79 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.15 ▼5.40 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 13.58 ▼0.80 | 1.82 ▼0.18 | 41.32 ▼4.11 |
Dashboard /wp-admin | 2,220 ▲53 | 4.88 ▼0.69 | 98.03 ▼3.76 | 75.93 ▲28.48 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.98 ▼0.07 | 39.87 ▲4.94 | 37.17 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,689 ▲163 | 22.52 ▲4.75 | 703.78 ▲60.30 | 62.25 ▲8.26 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.26 ▼0.17 | 99.84 ▼1.44 | 89.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
- > PHP Fatal error
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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 120 | 5 | 788 |
PHP | 3 | 33 | 51 | 547 |
JavaScript | 2 | 28 | 7 | 270 |
SVG | 4 | 0 | 0 | 86 |
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 code | 0.09 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-7.png | 215.57KB | 68.46KB | ▼ 68.24% |
setmore.png | 0.38KB | 0.20KB | ▼ 48.45% |
arrow-down.png | 0.28KB | 0.27KB | ▼ 4.88% |
screenshot-2.png | 189.21KB | 54.07KB | ▼ 71.42% |
screenshot-5.png | 67.95KB | 17.91KB | ▼ 73.64% |