Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▲1.31ms] Passed 4 tests
An overview of server-side resources used by sendwithus
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 38.81 ▼1.34 |
Dashboard /wp-admin | 3.59 ▲0.28 | 60.92 ▲13.15 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 50.18 ▲4.00 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 88.14 ▼4.18 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 40.33 ▲6.75 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for sendwithus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲133 | 13.32 ▼1.26 | 1.77 ▼0.09 | 43.33 ▼1.59 |
Dashboard /wp-admin | 2,268 ▲96 | 4.95 ▼0.91 | 106.93 ▼2.29 | 41.27 ▼3.58 |
Posts /wp-admin/edit.php | 2,157 ▲68 | 2.32 ▲0.27 | 41.95 ▲4.35 | 34.46 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 23.36 ▲5.77 | 679.55 ▼16.89 | 59.59 ▼2.51 |
Media Library /wp-admin/upload.php | 1,454 ▲66 | 4.37 ▲0.15 | 109.49 ▼7.86 | 48.24 ▼1.00 |
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_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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)
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sendwithus/sendwithus_php/test/APITest.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sendwithus/inc/multisite_overrides.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendwithus/inc/helper_functions.php:211
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sendwithus/inc/single_site_overrides.php:269
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendwithus/inc/helper_functions.php:211
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
sendwithus/sendwithus.php Passed 13 tests
The primary PHP file in "sendwithus" version 1.1.0 is used by WordPress to initiate all plugin functionality
68 characters long description:
Easily integrate transactional email into WordPress' default emails.
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 detected2,573 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 432 | 491 | 1,899 |
Markdown | 2 | 131 | 0 | 523 |
CSS | 1 | 31 | 0 | 133 |
XML | 1 | 2 | 0 | 11 |
JSON | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 74 | 93.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.33% |
Functions | 35 | |
▷ Named functions | 35 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) sendwithus_php/test/test_img.png | 0.02KB | 0.00KB | ▼ 100.00% |