Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.05ms] Passed 4 tests
An overview of server-side resources used by AddStars
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.84 ▼4.88 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.24 ▼4.76 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.51 ▼6.73 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.34 ▼7.84 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.22 ▼3.87 |
AddStars /wp-admin/options-general.php?page=addstars | 3.24 | 30.87 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AddStars
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲117 | 13.42 ▼1.31 | 6.75 ▲4.83 | 49.63 ▲6.52 |
Dashboard /wp-admin | 2,227 ▲39 | 5.81 ▼0.07 | 94.96 ▼17.77 | 34.88 ▼9.84 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.03 ▲0.03 | 40.21 ▲7.14 | 35.02 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.12 ▼0.52 | 648.15 ▼23.05 | 52.67 ▼13.76 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.36 ▲0.14 | 98.44 ▼7.81 | 41.37 ▼6.16 |
AddStars /wp-admin/options-general.php?page=addstars | 810 | 2.06 | 26.69 | 27.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/addstars/views/dashboard-notices.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/addstars/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/addstars/addstars.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (An example of results in Google Search.) image missing
- Donate link: Invalid url: "#"
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== addstars ===
)
addstars/addstars.php 85% from 13 tests
The primary PHP file in "AddStars" version 1.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "5.2")
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "4.6")
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
Everything looks great! No dangerous files found in this plugin191 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 28 | 85 | 153 |
JavaScript | 2 | 15 | 38 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 18.72KB | 6.74KB | ▼ 63.97% |