Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.56ms] Passed 4 tests
A check of server-side resources used by Report Bad Buyers and Screen New Ones
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.30 ▼3.89 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.33 ▼1.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.43 ▼4.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.78 ▼8.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.26 ▼9.35 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Report Bad Buyers and Screen New Ones: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲119 | 13.53 ▼0.86 | 1.96 ▲0.09 | 44.82 ▼6.77 |
Dashboard /wp-admin | 2,218 ▲30 | 5.81 ▲0.92 | 102.16 ▼5.90 | 39.23 ▼3.21 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.04 ▲0.05 | 39.96 ▼0.89 | 37.16 ▲3.93 |
Add New Post /wp-admin/post-new.php | 1,432 ▼91 | 17.17 ▼6.15 | 509.52 ▼152.12 | 38.67 ▼16.97 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.26 ▲0.01 | 96.67 ▼9.09 | 38.61 ▼6.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/report-bad-buyers-and-screen-new-ones/public/partials/ebuyers-reviewed-public-display.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Ebuyers_Reviewed_Admin' not found in wp-content/plugins/report-bad-buyers-and-screen-new-ones/admin/class-ebuyers-reviewed-admin-settings.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/report-bad-buyers-and-screen-new-ones/admin/partials/ebuyers-reviewed-admin-review-meta-box.php:32
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/report-bad-buyers-and-screen-new-ones/admin/partials/ebuyers-reviewed-admin-screen-meta-box.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/report-bad-buyers-and-screen-new-ones/admin/form.php:2
- > 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 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== report-bad-buyers-and-screen-new-ones ===
)
report-bad-buyers-and-screen-new-ones/ebuyersreviewed.php 77% from 13 tests
The main PHP file in "Report Bad Buyers and Screen New Ones" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("report-bad-buyers-and-screen-new-ones.php" instead of "ebuyersreviewed.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 1280 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected4,647 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 318 | 688 | 2,028 |
CSS | 3 | 47 | 36 | 1,352 |
JavaScript | 4 | 249 | 199 | 1,267 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 2 | 3.77% |
▷ Public methods | 41 | 77.36% |
▷ Protected methods | 4 | 7.55% |
▷ Private methods | 8 | 15.09% |
Functions | 4 | |
▷ Named functions | 4 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 1.13MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ebuyers-sprite.png | 53.18KB | 15.53KB | ▼ 70.80% |
admin/images/success-icon.png | 2.32KB | 1.26KB | ▼ 45.97% |
assets/screenshot-1.png | 43.64KB | 23.64KB | ▼ 45.84% |
admin/images/detailed-report.png | 481.76KB | 307.83KB | ▼ 36.10% |
assets/screenshot-5.png | 103.84KB | 35.82KB | ▼ 65.50% |