Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼10.57ms] Passed 4 tests
An overview of server-side resources used by ShareThis Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.65 ▲5.80 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.69 ▼3.88 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 44.97 ▼4.37 |
Add New Post /wp-admin/post-new.php | 4.92 ▼0.97 | 56.44 ▼36.84 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.92 ▲2.80 |
Settings /wp-admin/admin.php?page=sharethisreviews-general | 3.31 | 36.70 |
Review Management /wp-admin/admin.php?page=sharethisreviews-reviews | 3.34 | 29.96 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
sharethis_property_id |
sharethisreviews_rating_section_symbols |
sharethisreviews_rating_section_posttype |
sharethisreviews_review_section_posttype |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for ShareThis Reviews
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,010 ▲249 | 14.10 ▼0.25 | 18.73 ▲17.12 | 40.92 ▲2.87 |
Dashboard /wp-admin | 2,291 ▲113 | 5.87 ▲0.29 | 85.70 ▼15.26 | 37.41 ▼8.58 |
Posts /wp-admin/edit.php | 2,206 ▲109 | 2.51 ▲0.56 | 39.03 ▲1.35 | 29.54 ▼4.79 |
Add New Post /wp-admin/post-new.php | 6,269 ▲4,743 | 26.13 ▲2.53 | 939.66 ▲241.24 | 37.60 ▼16.07 |
Media Library /wp-admin/upload.php | 1,491 ▲94 | 4.44 ▲0.22 | 97.43 ▼3.26 | 43.57 ▲0.82 |
Settings /wp-admin/admin.php?page=sharethisreviews-general | 1,457 | 2.60 | 43.94 | 64.62 |
Review Management /wp-admin/admin.php?page=sharethisreviews-reviews | 927 | 2.09 | 27.88 | 27.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'ShareThisReviews\Register' does not have a method 'st_deactivation_hook'
- Zombie WordPress options detected upon uninstall: 11 options
- can_compress_scripts
- sharethisreviews_rating_section_symbols
- widget_recent-posts
- sharethis_property_id
- sharethisreviews_review_section_posttype
- theysaidso_admin_options
- widget_theysaidso_widget
- sharethisreviews_impression_section_symbols
- db_upgraded
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 15× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/sharethis-reviews/assets/crying-icon.svg.php
- > /wp-content/plugins/sharethis-reviews/assets/4-icon.svg.php
- > /wp-content/plugins/sharethis-reviews/assets/thumbs-up-icon.svg.php
- > /wp-content/plugins/sharethis-reviews/assets/thumbs-down-icon.svg.php
- > /wp-content/plugins/sharethis-reviews/assets/happy-icon.svg.php
- > /wp-content/plugins/sharethis-reviews/assets/sad-icon.svg.php
- > /wp-content/plugins/sharethis-reviews/assets/strike-heart-icon.svg.php
- > /wp-content/plugins/sharethis-reviews/assets/5-icon.svg.php
- > /wp-content/plugins/sharethis-reviews/assets/inlove-icon.svg.php
- > /wp-content/plugins/sharethis-reviews/assets/star-icon.svg.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sharethis-reviews/templates/menu/radio-field.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/sharethis-reviews/templates/menu/multi-check.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sharethis-reviews/templates/menu/text-field.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sharethis-reviews/templates/rating-metabox.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sharethis-reviews/templates/menu/check-field.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function ShareThisReviews\\trailingslashit() in wp-content/plugins/sharethis-reviews/php/class-plugin-base.php:143
- > PHP Fatal error
Uncaught Error: Call to undefined function ShareThisReviews\\trailingslashit() in wp-content/plugins/sharethis-reviews/php/class-plugin-base.php:143
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/sharethis-reviews/templates/menu/menu-template.php:8
- > PHP Fatal error
Uncaught Error: Class 'ShareThisReviews\\Plugin_Base' not found in wp-content/plugins/sharethis-reviews/php/class-plugin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sharethis-reviews/templates/menu/color-picker.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: sharethis, thoughts, impression, share this, ranking...
sharethis-reviews/sharethis-reviews.php 92% from 13 tests
The main PHP file in "ShareThis Reviews" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,529 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 306 | 603 | 1,671 |
CSS | 2 | 96 | 7 | 500 |
JavaScript | 3 | 65 | 112 | 328 |
JSON | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 56 | 86.15% |
▷ Protected methods | 1 | 1.54% |
▷ Private methods | 8 | 12.31% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
No PNG files were detected