Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼33.65ms] Passed 4 tests
Server-side resources used by Review Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.81 ▼4.95 |
Dashboard /wp-admin | 3.01 ▼0.30 | 24.44 ▼22.84 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 23.76 ▼27.27 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 24.69 ▼69.87 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 21.89 ▼14.62 |
Server storage [IO: ▲0.21MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_talforweb_review |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
talforweb_place_id |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Review Plugin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,135 ▲389 | 13.61 ▼1.14 | 7.15 ▲5.35 | 47.79 ▲4.60 |
Dashboard /wp-admin | 2,222 ▲34 | 4.84 ▼1.03 | 107.63 ▲7.92 | 38.36 ▼4.22 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.01 ▼0.05 | 41.12 ▼0.34 | 35.89 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.16 ▲4.94 | 668.06 ▲72.00 | 63.40 ▲19.41 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.18 ▼0.02 | 92.48 ▼9.36 | 40.95 ▼1.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/tfw-reviews/index.php+24
Undefined index: settings-updated
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_talforweb_review
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- talforweb_place_id
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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 no errors were found, 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
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/tfw-reviews/review.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tfw-reviews/index.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: reviews, google, google places reviews
tfw-reviews/index.php 92% from 13 tests
The main PHP script in "Review Plugin" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("tfw-reviews.php" instead of "index.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 detected257 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 36 | 16 | 173 |
CSS | 1 | 12 | 0 | 68 |
JavaScript | 1 | 1 | 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.12 |
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 | 11 | |
▷ Named functions | 11 | 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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/review.png | 4.43KB | 2.78KB | ▼ 37.13% |
images/star.png | 0.17KB | 0.23KB | 0.00% |