Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.48MB] [CPU: ▲24.98ms] 75% from 4 tests
Server-side resources used by WP Review Slider
The following require your attention
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.48MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.22 ▲5.76 | 76.18 ▲36.93 |
Dashboard /wp-admin | 9.24 ▲5.89 | 77.65 ▲12.90 |
Posts /wp-admin/edit.php | 9.24 ▲5.88 | 83.92 ▲38.91 |
Add New Post /wp-admin/post-new.php | 10.27 ▲4.38 | 114.67 ▲16.69 |
Media Library /wp-admin/upload.php | 9.24 ▲6.01 | 67.45 ▲33.38 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.24 | 63.95 |
Server storage [IO: ▲5.00MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 270 new files
Database: 3 new tables, 12 new options
New tables |
---|
wp_wpfb_post_templates |
wp_wpfb_reviews |
wp_wpfb_gettwitter_forms |
New WordPress options |
---|
wprev_activated_time |
can_compress_scripts |
wprev_img_locations |
theysaidso_admin_options |
db_upgraded |
fs_active_plugins |
widget_theysaidso_widget |
fs_debug_mode |
fs_accounts |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Review Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲234 | 13.47 ▼0.68 | 9.39 ▲7.66 | 33.12 ▼10.66 |
Dashboard /wp-admin | 2,270 ▲92 | 5.60 ▲0.04 | 97.04 ▼19.67 | 44.79 ▼0.91 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 2.00 ▲0.06 | 41.01 ▲1.82 | 37.96 ▲3.54 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.16 ▲0.16 | 706.49 ▲29.00 | 52.79 ▼9.37 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.22 ▲0.05 | 95.39 ▼5.81 | 44.71 ▼3.38 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,091 | 1.71 | 26.25 | 27.83 |
Uninstaller [IO: ▲5.00MB] [DB: ▲0.01MB] 0% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the followingZombie tables detected upon uninstall: 3 tables Zombie WordPress options detected upon uninstall: 13 options
- This plugin cannot be uninstalled
- > Compile error in wp-content/plugins/wp-facebook-reviews/uninstall.php+120
Cannot redeclare wpprorev_rmrf_fb() (previously declared in wp-content/plugins/wp-facebook-reviews/wp-fb-reviews.php:217)
- The plugin did not uninstall successfully, leaving 270 files (5.00MB) in the plugin directory
- (new file) admin/index.php
- (new file) admin/css/wprev_admin.css
- (new file) admin/class-wp-fb-reviews-admin.php
- (new file) admin/css/wprevpro_admin.css
- (new file) admin/js/review_list_page.js
- (new file) admin/js/wprev_admin.js
- (new file) admin/css/wprev_w3.css
- (new file) README.txt
- (new file) LICENSE.txt
- (new file) admin/js/templates_posts_page.js
- ...
- wp_wpfb_gettwitter_forms
- wp_wpfb_reviews
- wp_wpfb_post_templates
- widget_recent-posts
- can_compress_scripts
- wprev_activated_time
- recovery_mode_email_last_sent
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- wprev_img_locations
- fs_active_plugins
- fs_debug_mode
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-facebook-reviews/public/class-wp-fb-reviews-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\Config' not found in wp-content/plugins/wp-facebook-reviews/admin/twitteroauth/src/TwitterOAuth.php:16
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/wp-facebook-reviews/admin/twitteroauth/src/HmacSha1.php:15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-facebook-reviews/public/partials/wp-fb-reviews-public-display-widget.php on line 20
- > PHP Notice
Undefined variable: a in wp-content/plugins/wp-facebook-reviews/public/partials/wp-fb-reviews-public-display-widget.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-facebook-reviews/admin/partials/settings.php:16
- > PHP Notice
Undefined variable: a in wp-content/plugins/wp-facebook-reviews/public/partials/wp-fb-reviews-public-display.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-facebook-reviews/admin/partials/facebook.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/wp-facebook-reviews/admin/partials/get_twitter.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-facebook-reviews/public/class-wp-fb-reviews-template_action.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-facebook-reviews ===
)
wp-facebook-reviews/wp-fb-reviews.php 85% from 13 tests
The primary PHP file in "WP Review Slider" version 12.8 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-facebook-reviews.php" instead of "wp-fb-reviews.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin41,919 lines of code in 191 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 153 | 9,124 | 19,668 | 38,245 |
JavaScript | 15 | 420 | 750 | 1,858 |
CSS | 22 | 83 | 63 | 1,602 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 71.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 3 | 4.29% |
▷ Concrete classes | 67 | 95.71% |
▷ Final classes | 0 | 0.00% |
Methods | 1,487 | |
▷ Static methods | 210 | 14.12% |
▷ Public methods | 1,058 | 71.15% |
▷ Protected methods | 33 | 2.22% |
▷ Private methods | 396 | 26.63% |
Functions | 111 | |
▷ Named functions | 110 | 99.10% |
▷ Anonymous functions | 1 | 0.90% |
Constants | 171 | |
▷ Global constants | 121 | 70.76% |
▷ Class constants | 50 | 29.24% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
28 PNG files occupy 0.42MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/partials/imgs/stars_0_yellow.png | 6.46KB | 1.90KB | ▼ 70.51% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
public/partials/imgs/google_mystery_man.png | 0.61KB | 0.62KB | 0.00% |
admin/partials/facebook_small_icon.png | 0.22KB | 0.20KB | ▼ 7.17% |
public/partials/imgs/negative.png | 3.02KB | 0.28KB | ▼ 90.89% |