Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.27ms] Passed 4 tests
Analyzing server-side resources used by SendWP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.31 ▼2.55 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.46 ▲0.93 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 51.74 ▲6.37 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 97.02 ▼0.32 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.09 ▲0.87 |
SendWP /wp-admin/tools.php?page=sendwp | 3.31 | 34.52 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
sendwp_client_secret |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for SendWP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.24 ▼1.34 | 5.03 ▲3.32 | 30.69 ▼10.26 |
Dashboard /wp-admin | 2,239 ▲32 | 4.89 ▼1.16 | 103.07 ▼7.16 | 46.01 ▼0.23 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.98 ▼0.00 | 41.44 ▲5.35 | 38.80 ▲2.95 |
Add New Post /wp-admin/post-new.php | 1,561 ▲15 | 21.02 ▼2.06 | 644.23 ▼13.50 | 58.84 ▲5.19 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.30 ▲0.05 | 101.49 ▼2.47 | 45.33 ▲1.16 |
SendWP /wp-admin/tools.php?page=sendwp | 895 | 2.04 | 24.24 | 29.40 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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
Everything seems fine, however 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
Please fix the following items
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sendwp/includes/trustedlogin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendwp/includes/admin/load.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function sendwp_client_connected() in wp-content/plugins/sendwp/includes/admin/views/menu.html.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sendwp/sendwp.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/sendwp/assets/load.php:5
- > PHP Fatal error
Uncaught Error: Interface 'SendWP\\MailerInterface' not found in wp-content/plugins/sendwp/includes/class.mailer.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function sendwp_forwarding_enabled() in wp-content/plugins/sendwp/includes/hooks.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/sendwp/includes/deactivation.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sendwp/includes/admin/views/disabled-notice.html.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendwp/includes/functions.php:243
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: forms, transactional, email
sendwp/sendwp.php 92% from 13 tests
"SendWP" version 1.4.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.6.0" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected5,674 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,541 | 2,407 | 4,667 |
Sass | 4 | 100 | 3 | 533 |
JavaScript | 2 | 53 | 22 | 179 |
JSON | 1 | 0 | 0 | 145 |
CSS | 3 | 0 | 4 | 124 |
SVG | 3 | 0 | 0 | 14 |
Markdown | 1 | 6 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 23.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 12 | 52.17% |
Methods | 228 | |
▷ Static methods | 29 | 12.72% |
▷ Public methods | 177 | 77.63% |
▷ Protected methods | 7 | 3.07% |
▷ Private methods | 44 | 19.30% |
Functions | 37 | |
▷ Named functions | 28 | 75.68% |
▷ Anonymous functions | 9 | 24.32% |
Constants | 27 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 27 | 100.00% |
▷ Public constants | 27 | 100.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-render.png | 20.64KB | 4.98KB | ▼ 75.86% |