Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/pegleg-ratings/pl-ratings.php+64
Undefined variable: rhr_db_version
Server metrics [RAM: ▼11.72MB] [CPU: ▼2,354,722.08ms] Passed 4 tests
This is a short check of server-side resources used by Pegleg Ratings
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▼45.64 | 36.49 ▼9,418,826.99 |
Dashboard /wp-admin | 3.38 ▼0.01 | 50.85 ▼15.98 |
Posts /wp-admin/edit.php | 3.49 ▲0.09 | 50.64 ▲1.42 |
Add New Post /wp-admin/post-new.php | 4.67 ▼1.26 | 57.49 ▼46.77 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 36.53 ▲1.68 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_rh_ratings |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
rhr_db_version |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pegleg Ratings
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲150 | 13.82 ▼0.53 | 9.95 ▲8.28 | 43.09 ▲1.06 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.12 | 89.58 ▲0.04 | 40.44 ▼2.94 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.98 ▼0.02 | 36.43 ▼4.10 | 33.09 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.43 ▼0.05 | 635.20 ▼30.37 | 62.15 ▲8.43 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.06 | 96.02 ▼17.25 | 43.99 ▼3.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_rh_ratings
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/pegleg-ratings/pl-ratings.php on line 31
- > PHP Warning
require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/pegleg-ratings/pl-ratings.php on line 31
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pegleg-ratings/pl-ratings.php on line 31
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (The rating widget with default styling.) image not found
pegleg-ratings/pl-ratings.php 92% from 13 tests
The main PHP script in "Pegleg Ratings" version 1.2.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pegleg-ratings.php" instead of "pl-ratings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin223 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 77 | 52 | 152 |
JavaScript | 1 | 10 | 4 | 42 |
CSS | 1 | 8 | 2 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sprites.png | 4.28KB | 0.72KB | ▼ 83.15% |
screenshot-1.png | 1.52KB | 1.11KB | ▼ 27.04% |