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.08MB] [CPU: ▼5.93ms] Passed 4 tests
An overview of server-side resources used by Orioly Book Now Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.40 ▼6.16 |
Dashboard /wp-admin | 3.38 ▲0.08 | 43.78 ▼9.06 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.26 ▼3.15 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 95.54 ▼5.35 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.83 ▼0.14 |
Orioly Book Now /wp-admin/options-general.php?page=orioly | 3.27 | 32.52 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_orioly_data |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Orioly Book Now Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.29 ▼1.49 | 5.14 ▲3.42 | 43.80 ▼18.95 |
Dashboard /wp-admin | 2,224 ▲36 | 5.86 ▼0.02 | 106.69 ▼0.11 | 38.46 ▲0.74 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.02 ▲0.05 | 36.70 ▼0.91 | 32.16 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 23.21 ▲0.02 | 604.90 ▼118.21 | 60.61 ▼14.68 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.44 ▲0.22 | 103.73 ▼6.78 | 42.20 ▼6.97 |
Orioly Book Now /wp-admin/options-general.php?page=orioly | 854 | 2.19 | 26.43 | 26.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× 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/orioly-book-now/admin/partials/orioly-admin-display.php:15
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (**First screenshot** shows you a settings page where you need you need to place your API key.), #2 (**Orioly shortcode in action.** Use the top button (above your page/post editor) to add a new button to your site.), #3 (**Select the activity** for which you want to add a booking button.), #4 (**Check your button in action**, placed in same sample blog post.)
- Plugin Name: You should set the name of your plugin on the first line (
=== orioly-book-now ===
)
orioly-book-now/orioly.php 77% from 13 tests
The principal PHP file in "Orioly Book Now Plugin" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 152 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("orioly-book-now.php" instead of "orioly.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected496 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 135 | 392 | 441 |
JavaScript | 1 | 5 | 0 | 37 |
CSS | 1 | 6 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 2.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 12 | 30.00% |
▷ Public methods | 32 | 80.00% |
▷ Protected methods | 1 | 2.50% |
▷ Private methods | 7 | 17.50% |
Functions | 3 | |
▷ Named functions | 3 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.41MB with 0.26MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot3.png | 207.62KB | 71.57KB | ▼ 65.53% |
assets/screenshot2.png | 117.82KB | 43.69KB | ▼ 62.92% |
assets/screenshot1.png | 91.21KB | 33.72KB | ▼ 63.03% |