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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.86ms] Passed 4 tests
An overview of server-side resources used by Star Rating Feedback
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.58 ▼4.16 |
Dashboard /wp-admin | 3.37 ▲0.06 | 49.93 ▼2.32 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.05 ▲3.75 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.11 ▼13.47 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.33 ▲0.50 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 1 new table, 7 new options
New tables |
---|
feedback |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
feedback_db_version |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Star Rating Feedback
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,018 ▲272 | 14.06 ▼0.33 | 6.21 ▲4.38 | 36.98 ▼7.21 |
Dashboard /wp-admin | 2,310 ▲122 | 5.26 ▲0.36 | 99.73 ▼16.84 | 38.85 ▼4.82 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.45 ▲0.41 | 37.10 ▼0.75 | 33.52 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,546 ▲12 | 23.57 ▲0.22 | 601.40 ▼55.33 | 33.35 ▼16.34 |
Media Library /wp-admin/upload.php | 1,417 ▲35 | 4.42 ▲0.15 | 103.33 ▲7.98 | 46.49 ▲4.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
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- feedback
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- feedback_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/star-rating-feedback/ho_feedback.php:79
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid url: ""
star-rating-feedback/ho_feedback.php 92% from 13 tests
The primary PHP file in "Star Rating Feedback" version 0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("star-rating-feedback.php" instead of "ho_feedback.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,345 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 304 | 475 | 3,090 |
SVG | 1 | 0 | 0 | 504 |
CSS | 3 | 5 | 12 | 423 |
PHP | 1 | 71 | 51 | 315 |
XML | 2 | 0 | 0 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 13 | |
▷ Named functions | 13 | 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
14 PNG files occupy 0.21MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/star-on.png | 2.02KB | 1.14KB | ▼ 43.74% |
images/cancel-off.png | 0.68KB | 0.61KB | ▼ 11.30% |
screenshot-1.png | 109.26KB | 46.93KB | ▼ 57.05% |
screenshot-3.png | 30.01KB | 13.69KB | ▼ 54.39% |
images/star-half.png | 0.65KB | 0.65KB | 0.00% |