Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.41ms] Passed 4 tests
This is a short check of server-side resources used by StartMyReview
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 41.61 ▲1.44 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.78 ▲1.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.24 ▲0.40 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.76 ▼11.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.80 ▼0.05 |
Server storage [IO: ▲3.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 118 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
StartMyReview: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.68 ▼0.93 | 1.73 ▼0.25 | 42.07 ▼5.42 |
Dashboard /wp-admin | 2,222 ▲31 | 5.85 ▲0.98 | 105.71 ▲0.26 | 39.13 ▼5.59 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 1.99 ▼0.03 | 34.52 ▼5.21 | 31.71 ▼4.36 |
Add New Post /wp-admin/post-new.php | 1,559 ▲15 | 17.99 ▼0.35 | 590.89 ▼22.55 | 66.25 ▲13.03 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.23 ▲0.02 | 94.49 ▼5.80 | 40.16 ▼2.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/start-my-review/includes/reviewme.php
- > /wp-content/plugins/start-my-review/assets/internal_layouts/settings.php
- > /wp-content/plugins/start-my-review/assets/internal_layouts/smr_auth.php
- > /wp-content/plugins/start-my-review/assets/internal_layouts/customers.php
- > /wp-content/plugins/start-my-review/includes/yelp.php
- > /wp-content/plugins/start-my-review/assets/internal_layouts/stats.php
- > /wp-content/plugins/start-my-review/includes/requests.php
- 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/start-my-review/assets/internal_layouts/reviews.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/start-my-review/assets/internal_layouts/panel.php:37
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/start-my-review/assets/internal_layouts/business_user.php:2
- > PHP Warning
Use of undefined constant SMReview_REVIEW_URI - assumed 'SMReview_REVIEW_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/start-my-review/assets/internal_layouts/panel.php on line 26
- > PHP Notice
Undefined variable: current_version in wp-content/plugins/start-my-review/assets/internal_layouts/settings.php on line 16
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/start-my-review/assets/external_layout/side_comments.tpl.php on line 7
- > PHP Warning
Use of undefined constant SMReview_REVIEW_URI - assumed 'SMReview_REVIEW_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/start-my-review/assets/internal_layouts/panel.php on line 25
- > PHP Notice
Undefined variable: accounts in wp-content/plugins/start-my-review/assets/internal_layouts/customers.php on line 10
- > PHP Notice
Undefined variable: haveBusinesses in wp-content/plugins/start-my-review/assets/internal_layouts/stats.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/start-my-review/assets/internal_layouts/reviews.php:2
- > PHP Notice
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 issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Contributors: No tags were detected
- Contributors: Contributors not specified
- Tags: There are too many tags (19 tag instead of maximum 10)
start-my-review/startmyreview.php 85% from 13 tests
"StartMyReview" version 3.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please improve your description making it at least 10 characters long (currently 0 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("start-my-review.php" instead of "startmyreview.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin34,467 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 29 | 5,958 | 18,720 |
JavaScript | 18 | 4,987 | 2,290 | 14,245 |
PHP | 19 | 241 | 31 | 1,502 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 21 | 80.77% |
▷ Public methods | 26 | 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 | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
56 PNG files occupy 0.48MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/if__yelp_1250003.png | 16.22KB | 6.55KB | ▼ 59.62% |
assets/images/ypins.png | 5.72KB | 3.48KB | ▼ 39.20% |
assets/images/header.png | 0.17KB | 0.15KB | ▼ 11.80% |
assets/images/reviews.png | 20.52KB | 8.42KB | ▼ 58.98% |
assets/images/presets.png | 0.55KB | 0.60KB | 0.00% |