Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.08ms] Passed 4 tests
This is a short check of server-side resources used by That Was Helpful
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 34.79 ▼5.48 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.88 ▼3.02 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 50.77 ▲0.73 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 91.19 ▼4.54 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 35.84 ▲2.34 |
That Was Helpful /wp-admin/options-general.php?page=that_was_helpful | 3.31 | 32.65 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
that_was_helpful_version |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
That Was Helpful: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼1.35 | 1.49 ▼0.29 | 37.22 ▼11.95 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.75 | 101.50 ▲1.12 | 39.42 ▼0.86 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.01 | 39.26 ▼2.58 | 34.62 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.27 ▲5.64 | 658.63 ▼43.34 | 49.17 ▼8.17 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.22 ▲0.04 | 97.72 ▲1.87 | 40.26 ▼0.44 |
That Was Helpful /wp-admin/options-general.php?page=that_was_helpful | 813 | 2.06 | 25.03 | 25.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- that_was_helpful_version
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'tfrommen\\Autoloader\\Rule' not found in wp-content/plugins/that-was-helpful/inc/Autoloader/NamespaceRule.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please a description for screenshot #2 in that-was-helpful/assets to your readme.txt
that-was-helpful/that-was-helpful.php Passed 13 tests
The main PHP file in "That Was Helpful" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Find out what posts logged-in users found helpful.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected773 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 320 | 602 | 676 |
JavaScript | 2 | 11 | 1 | 45 |
PO File | 1 | 10 | 14 | 37 |
CSS | 2 | 2 | 0 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 3 | 5.00% |
▷ Public methods | 56 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.67% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin