Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.69MB] [CPU: ▼56.54ms] Passed 4 tests
This is a short check of server-side resources used by Leafly Reviews for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.15 | 5.58 ▼33.39 |
Dashboard /wp-admin | 2.33 ▼1.01 | 7.41 ▼54.24 |
Posts /wp-admin/edit.php | 2.33 ▼1.02 | 6.42 ▼40.05 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.55 | 6.81 ▼98.46 |
Media Library /wp-admin/upload.php | 2.33 ▼0.90 | 9.62 ▼26.95 |
Leafly Reviews /wp-admin/options-general.php?page=leafly_reviews | 2.33 | 6.76 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_leaflyreviews_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Leafly Reviews for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.27 ▼0.73 | 1.77 ▼0.03 | 45.56 ▲3.80 |
Dashboard /wp-admin | 2,230 ▲24 | 5.90 ▲1.03 | 101.78 ▼3.84 | 41.11 ▼0.46 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.04 ▲0.08 | 37.71 ▲1.14 | 34.93 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,531 ▼0 | 17.41 ▼6.12 | 694.29 ▲35.78 | 59.95 ▼2.54 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.36 ▲0.14 | 115.71 ▲16.49 | 48.50 ▲4.51 |
Leafly Reviews /wp-admin/options-general.php?page=leafly_reviews | 811 | 2.05 | 23.75 | 26.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/leafly-reviews/includes/widget.php+98
Methods with the same name as their class will not be constructors in a future version of PHP; leaflyreviews_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_leaflyreviews_widget
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=leafly_reviews
- > Deprecated in wp-content/plugins/leafly-reviews/includes/widget.php+98
Methods with the same name as their class will not be constructors in a future version of PHP; leaflyreviews_widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=leafly_reviews
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in leaflyreviews_widget is deprecated since version 4.3.0! Use __construct() instead.
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: shortcode, reviews, leafly, widget
leafly-reviews/leafly-reviews.php Passed 13 tests
The main PHP file in "Leafly Reviews for WordPress" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Easily display your leafly dispensary reviews on your own website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin466 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 137 | 235 | 434 |
CSS | 2 | 12 | 16 | 32 |
PHP code Passed 2 tests
This is a very shot review of 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.24 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 16 | 76.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 23.81% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin