Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.69ms] Passed 4 tests
Analyzing server-side resources used by Freetobook review widget (legacy)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.74 ▼0.86 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.95 ▼5.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.35 ▼1.12 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.04 ▼3.39 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.46 ▲3.86 |
Freetobook Review Widget /wp-admin/options-general.php?page=freetobook-review-widget/freetobook-review-widget.php | 3.22 | 41.56 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_freetobook_reviews |
Browser metrics Passed 4 tests
Checking browser requirements for Freetobook review widget (legacy)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.44 ▼0.95 | 1.98 ▲0.17 | 37.02 ▼10.86 |
Dashboard /wp-admin | 2,213 ▲25 | 4.92 ▼0.90 | 108.48 ▲5.71 | 40.38 ▼1.91 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.21 ▲0.16 | 35.21 ▼5.35 | 32.80 ▼4.57 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 23.36 ▲0.26 | 655.43 ▼4.13 | 49.13 ▼1.00 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.20 ▲0.00 | 98.57 ▼7.52 | 43.06 ▼4.23 |
Freetobook Review Widget /wp-admin/options-general.php?page=freetobook-review-widget/freetobook-review-widget.php | 794 | 1.80 | 25.82 | 27.15 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_freetobook_reviews
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/freetobook-review-widget/freetobook-review-widget.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: booking system, online booking, booking engine, web booking, freetobook...
freetobook-review-widget/freetobook-review-widget.php Passed 13 tests
The principal PHP file in "Freetobook review widget (legacy)" v. 1.1 is loaded by WordPress automatically on each request
47 characters long description:
Freetobook Review Widget for wordpress (legacy)
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
Everything looks great! No dangerous files found in this plugin278 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 19 | 216 |
JavaScript | 1 | 21 | 1 | 61 |
CSS | 1 | 1 | 5 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |
css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.30KB | 0.15KB | ▼ 49.68% |
css/ui-lightness/images/ui-icons_ffd27a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/previews/combined.png | 9.79KB | 4.16KB | ▼ 57.48% |