Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.29MB] [CPU: ▲0.48ms] Passed 4 tests
An overview of server-side resources used by OPR Place Reservations
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.87 ▲1.41 | 45.39 ▲5.06 |
Dashboard /wp-admin | 4.57 ▲1.27 | 49.26 ▲1.83 |
Posts /wp-admin/edit.php | 4.68 ▲1.32 | 54.84 ▲7.97 |
Add New Post /wp-admin/post-new.php | 7.17 ▲1.28 | 94.59 ▼12.94 |
Media Library /wp-admin/upload.php | 4.49 ▲1.26 | 45.49 ▲13.87 |
Places /wp-admin/admin.php?page=opr-places | 4.46 | 48.74 |
Types & locations /wp-admin/admin.php?page=opr-types | 4.46 | 38.68 |
Settings /wp-admin/admin.php?page=opr-settings | 4.47 | 39.50 |
Import /wp-admin/admin.php?page=opr-importer | 4.47 | 36.83 |
Reservations /wp-admin/admin.php?page=opr-reservations | 4.46 | 41.89 |
Server storage [IO: ▲0.31MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_opr_reservations |
wp_opr_places_locations |
wp_opr_places |
wp_opr_reservations_period_types |
wp_opr_places_place_types |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
OPR Place Reservations: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲128 | 13.70 ▼0.67 | 4.35 ▲2.75 | 36.37 ▼5.56 |
Dashboard /wp-admin | 2,255 ▲67 | 5.87 ▲0.01 | 110.66 ▲10.07 | 39.47 ▲0.99 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.04 ▲0.02 | 44.20 ▲8.79 | 34.57 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,561 ▲24 | 23.59 ▲0.24 | 670.75 ▲75.84 | 35.55 ▼22.67 |
Media Library /wp-admin/upload.php | 1,443 ▲52 | 4.24 ▼0.08 | 112.57 ▲9.26 | 45.70 ▲1.73 |
Places /wp-admin/admin.php?page=opr-places | 1,056 | 2.22 | 27.81 | 31.66 |
Types & locations /wp-admin/admin.php?page=opr-types | 960 | 2.23 | 39.09 | 29.85 |
Settings /wp-admin/admin.php?page=opr-settings | 1,138 | 2.06 | 26.36 | 30.90 |
Import /wp-admin/admin.php?page=opr-importer | 943 | 2.07 | 27.54 | 32.18 |
Reservations /wp-admin/admin.php?page=opr-reservations | 1,036 | 2.22 | 29.18 | 30.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 plugin did not uninstall successfully, leaving 5 tables in the database
- wp_opr_reservations_period_types
- wp_opr_places
- wp_opr_places_locations
- wp_opr_places_place_types
- wp_opr_reservations
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Orwokki\\PlaceReservations\\Importer\\FileImporter' not found in wp-content/plugins/opr-place-reservations/classes/Importer/ReservationsWithPlacesImporter.php:8
- > PHP Fatal error
Uncaught Error: Class 'Orwokki\\PlaceReservations\\Importer\\FileImporter' not found in wp-content/plugins/opr-place-reservations/classes/Importer/ReservationsImporter.php:8
- > PHP Fatal error
Uncaught Error: Class 'Orwokki\\PlaceReservations\\Importer\\FileImporter' not found in wp-content/plugins/opr-place-reservations/classes/Importer/PlacesImporter.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Admin UI 4)
opr-place-reservations/opr-place-reservations.php 85% from 13 tests
The main PHP script in "OPR Place Reservations" version 1.1.12 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("5.4" instead of "5.8")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected5,501 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 796 | 358 | 3,607 |
JavaScript | 10 | 349 | 81 | 1,492 |
PO File | 1 | 154 | 251 | 372 |
CSS | 2 | 1 | 0 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 29.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 228 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 167 | 73.25% |
▷ Protected methods | 9 | 3.95% |
▷ Private methods | 52 | 22.81% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 26 | 100.00% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin