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.07MB] [CPU: ▼1.09ms] Passed 4 tests
A check of server-side resources used by Smartarget Reviews
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 47.01 ▲0.28 |
Dashboard /wp-admin | 3.37 ▲0.06 | 54.31 ▲2.33 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 55.40 ▲1.59 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 87.38 ▼8.54 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 40.31 ▲3.16 |
Smartarget Reviews /wp-admin/options-general.php?page=smartarget_reviews | 3.26 | 36.32 |
Server storage [IO: ▲1.76MB] [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: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smartarget Reviews
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲110 | 20.95 ▲6.41 | 9.36 ▲7.34 | 42.89 ▼5.37 |
Dashboard /wp-admin | 2,205 ▲25 | 10.62 ▲5.01 | 186.49 ▲86.43 | 37.98 ▼5.55 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 7.28 ▲5.30 | 118.73 ▲82.76 | 33.41 ▼2.78 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 26.10 ▲2.31 | 774.67 ▲61.13 | 55.96 ▼7.17 |
Media Library /wp-admin/upload.php | 1,410 ▲16 | 9.40 ▲5.18 | 182.17 ▲78.78 | 45.77 ▲2.64 |
Smartarget Reviews /wp-admin/options-general.php?page=smartarget_reviews | 2,184 | 11.35 | 201.19 | 142.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/smartarget-reviews/public/partials/smartarget-reviews-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-reviews/admin/partials/smartarget-reviews-admin-display.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: satismetr, feedback, testimonials, smartarget, review...
smartarget-reviews/smartarget-reviews.php 92% from 13 tests
Analyzing the main PHP file in "Smartarget Reviews" version 1.2
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
No dangerous file extensions were detected423 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 130 | 522 | 225 |
JavaScript | 3 | 5 | 1,390 | 198 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin