Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.65ms] Passed 4 tests
This is a short check of server-side resources used by SendSmith
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.94 ▼2.64 |
Dashboard /wp-admin | 3.42 ▲0.12 | 55.51 ▲1.57 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 51.23 ▼0.18 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 89.34 ▼5.35 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.40 ▲2.60 |
Settings /wp-admin/admin.php?page=sendsmith_settings | 3.32 | 33.90 |
SendSmith /wp-admin/admin.php?page=sendsmith | 3.31 | 33.36 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
sendsmith-doubleopt-form |
widget_recent-posts |
db_upgraded |
sendsmith-doubleopt-roles |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for SendSmith
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲198 | 14.19 ▼0.39 | 8.74 ▲6.42 | 42.05 ▼4.50 |
Dashboard /wp-admin | 2,225 ▲40 | 5.09 ▲0.25 | 115.47 ▼1.19 | 84.41 ▲34.14 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.29 ▲0.30 | 34.87 ▼2.87 | 33.42 ▲0.28 |
Add New Post /wp-admin/post-new.php | 1,544 ▲2 | 17.63 ▼0.65 | 666.11 ▲36.03 | 37.86 ▼16.08 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.51 ▲0.23 | 110.73 ▲5.04 | 73.83 ▲25.90 |
Settings /wp-admin/admin.php?page=sendsmith_settings | 867 | 1.80 | 25.29 | 27.86 |
SendSmith /wp-admin/admin.php?page=sendsmith | 862 | 1.90 | 24.90 | 26.49 |
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 did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- sendsmith-doubleopt-form
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- sendsmith-doubleopt-roles
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)
Good news, no errors were detected
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 take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sendsmith/tpl/admin/main.tpl.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sendsmith/tpl/admin/forms.tpl.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sendsmith/tpl/admin/roles.tpl.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sendsmith/tpl/admin/tags.tpl.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sendsmith/tpl/admin/settings.tpl.php:2
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: email plugin, email marketing, newsletter
sendsmith/index.php 77% from 13 tests
The main PHP file in "SendSmith" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 203 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sendsmith.php" instead of "index.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,098 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 131 | 161 | 907 |
CSS | 3 | 10 | 1 | 115 |
JavaScript | 3 | 14 | 6 | 76 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 85.00 |
▷ Minimum class complexity | 84.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 6.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 2 | 6.45% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo_icon.png | 9.27KB | 4.37KB | ▼ 52.82% |
assets/images/icon.png | 4.42KB | 1.19KB | ▼ 73.17% |