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
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php+41
Undefined index: reviews_actif
Server metrics [RAM: ▼1.95MB] [CPU: ▼51.43ms] Passed 4 tests
Analyzing server-side resources used by Post Rating and Review
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.99 ▼34.09 |
Dashboard /wp-admin | 2.05 ▼1.25 | 7.56 ▼42.74 |
Posts /wp-admin/edit.php | 2.05 ▼1.30 | 6.87 ▼38.36 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.83 | 7.60 ▼90.54 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.80 ▼26.90 |
Post Rating & Review /wp-admin/options-general.php?page=prar_rating_options | 2.05 | 7.15 |
Server storage [IO: ▲0.39MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_prar_ratings_log |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Rating and Review
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲213 | 13.89 ▼0.86 | 11.95 ▲10.30 | 35.78 ▼8.88 |
Dashboard /wp-admin | 2,212 ▲21 | 5.86 ▼0.02 | 95.14 ▼16.48 | 39.68 ▼5.81 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.07 ▲0.07 | 38.81 ▲1.64 | 34.22 ▼0.43 |
Add New Post /wp-admin/post-new.php | 6,215 ▲4,701 | 26.12 ▲8.72 | 908.16 ▲208.21 | 57.84 ▼6.66 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.22 ▲0.00 | 92.07 ▼10.92 | 40.90 ▼5.79 |
Post Rating & Review /wp-admin/options-general.php?page=prar_rating_options | 1,330 | 1.73 | 28.59 | 31.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php+41
Undefined index: reviews_actif
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_prar_ratings_log
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Notice in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php+583
Undefined index: reviews_actif
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Warning in wp-content/plugins/post-rating-and-review/prar-rating-plugins-compatibility.php+68
Invalid argument supplied for foreach()
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Notice in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php+583
Undefined index: affichage_note_globale
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Notice in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php+583
Undefined index: affichage_nombre_notes
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Notice in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php+583
Undefined index: note_modifiable_apres_vote
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Notice in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php+583
Undefined index: save_note_dans_post
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Notice in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php+644
Undefined index: type_champ_dans_post
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Notice in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php+665
Undefined index: reviews_post_types
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Notice in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php+583
Undefined index: reviews_rating_obligatoire
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Notice in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php+583
Undefined index: reviews_comment_obligatoire
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'prar_rating' not found in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-review.php:2
- > PHP Fatal error
Uncaught Error: Class 'prar_rating' not found in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-notification.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-rating-and-review/prar-rating-plugins-compatibility.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-rating-and-review/prar-rating-plugins-compatibility.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/post-rating-and-review/includes/template/part-update-review.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-rating-and-review/prar-rating-template.php:2
- > PHP Fatal error
Uncaught Error: Class 'prar_rating' not found in wp-content/plugins/post-rating-and-review/includes/class/class-prar-rating-admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/post-rating-and-review/includes/template/post-reviews.php:10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/post-rating-and-review/prar-rating-plugins-compatibility.php on line 4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).wpColorPicker is not a function" "TypeError: $(...).wpColorPicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=prar_rating_options:162:37)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=prar_rating_options
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).wpColorPicker is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
post-rating-and-review/post-rating-and-review.php Passed 13 tests
This is the main PHP file of "Post Rating and Review" version 1.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Rating and reviews for your posts & custom posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,026 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 281 | 232 | 2,287 |
PO File | 2 | 242 | 288 | 856 |
JavaScript | 3 | 86 | 64 | 556 |
CSS | 4 | 26 | 16 | 314 |
SVG | 2 | 0 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 58.80 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 116 | |
▷ Static methods | 13 | 11.21% |
▷ Public methods | 114 | 98.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.72% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/css/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
includes/css/images/ui-icons_cc0000_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
includes/css/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
includes/css/images/ui-icons_777620_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
includes/css/images/ui-icons_444444_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |