Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/panda-reviews/settings.php+109
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.79MB] [CPU: ▼61.24ms] Passed 4 tests
Server-side resources used by Panda Reviews
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.27 | 7.02 ▼39.57 |
Dashboard /wp-admin | 2.22 ▼1.09 | 6.71 ▼61.00 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 8.46 ▼43.97 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 8.82 ▼100.41 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 6.72 ▼33.60 |
Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 143 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pxreviews |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Panda Reviews
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲218 | 13.54 ▼1.05 | 8.78 ▲6.96 | 37.16 ▼6.81 |
Dashboard /wp-admin | 2,220 ▲43 | 5.73 ▲0.04 | 91.25 ▼23.13 | 39.56 ▼8.70 |
Posts /wp-admin/edit.php | 2,125 ▲22 | 2.09 ▲0.12 | 44.57 ▲5.49 | 34.66 ▼4.24 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.19 ▼0.37 | 661.89 ▲22.83 | 56.93 ▲3.11 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.29 ▲0.10 | 103.66 ▲0.96 | 43.75 ▼3.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/panda-reviews/settings.php+109
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- Zombie tables detected upon uninstall: 1 table
- wp_pxreviews
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- 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
Good news, no errors were detected
SRP 0% 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 items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/panda-reviews/_views/post-review.php
- > /wp-content/plugins/panda-reviews/_views/manage-reviews-wpbackend.php
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(PXPR_PLUGIN_PATH_models/main-model.php): failed to open stream: No such file or directory in wp-content/plugins/panda-reviews/_controllers/main-controller.php on line 5
- > PHP Warning
Use of undefined constant PXPR_PLUGIN_PATH - assumed 'PXPR_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/panda-reviews/_controllers/ajax-requests-controller.php on line 5
- > PHP Notice
Undefined variable: reviews_data in wp-content/plugins/panda-reviews/_views/manage-reviews-wpbackend.php on line 31
- > PHP Fatal error
require_once(): Failed opening required 'PXPR_PLUGIN_PATH_models/main-model.php' (include_path='.:/usr/share/php') in wp-content/plugins/panda-reviews/_controllers/ajax-requests-controller.php on line 5
- > PHP Warning
Use of undefined constant PXPR_PLUGIN_PATH - assumed 'PXPR_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/panda-reviews/_controllers/main-controller.php on line 5
- > PHP Notice
Undefined variable: classic_stars in wp-content/plugins/panda-reviews/_views/general-settings-wpbackend.php on line 50
- > PHP Notice
Undefined variable: data in wp-content/plugins/panda-reviews/_views/manage-reviews-wpbackend.php on line 3
- > PHP Warning
require_once(PXPR_PLUGIN_PATH_models/main-model.php): failed to open stream: No such file or directory in wp-content/plugins/panda-reviews/_controllers/ajax-requests-controller.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/panda-reviews/_views/general-settings-wpbackend.php:66
- > PHP Fatal error
Uncaught Error: Class 'PxReviews\\Controller\\PxprMainController' not found in wp-content/plugins/panda-reviews/settings.php:6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: voting system, star rating, wp voting, reviews, star voting...
panda-reviews/base.php 92% from 13 tests
"Panda Reviews" version 1.0.0'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:
- Main file name: The principal plugin file should be the same as the plugin slug ("panda-reviews.php" instead of "base.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin12,484 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 5,492 |
JavaScript | 7 | 613 | 124 | 2,058 |
CSS | 7 | 139 | 23 | 1,676 |
PHP | 12 | 493 | 286 | 1,169 |
Sass | 5 | 117 | 0 | 1,008 |
HTML | 3 | 351 | 0 | 765 |
Markdown | 2 | 34 | 0 | 300 |
JSON | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 39.33 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 6.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 2 | 10.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
76 PNG files occupy 0.39MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/rating-schema/icons/like-scheme-5.png | 1.45KB | 0.62KB | ▼ 56.92% |
assets/css/images/rating-schema/icons/like-scheme-4.png | 1.58KB | 0.79KB | ▼ 49.75% |
assets/css/images/rating-schema/icons/like-scheme-14.png | 1.33KB | 0.79KB | ▼ 40.60% |
assets/css/images/rating-schema/icons/like-scheme-2-half-active.png | 1.73KB | 0.98KB | ▼ 43.62% |
assets/css/images/rating-schema/icons/default-stars-half-active.png | 1.11KB | 0.46KB | ▼ 58.85% |