Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/ultimate-post-by-mail/upostbymail.php+29
Constant WP_DEBUG already defined
Server metrics [RAM: ▼1.93MB] [CPU: ▼58.90ms] Passed 4 tests
An overview of server-side resources used by Ultimate Post by Mail
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.52 ▼43.95 |
Dashboard /wp-admin | 2.07 ▼1.23 | 5.53 ▼45.25 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 6.80 ▼49.30 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 6.08 ▼97.08 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.41 ▼32.82 |
U Post by Mail /wp-admin/options-general.php?page=cws-mail-configuration | 2.07 | 8.00 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ultimate Post by Mail
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.38 ▼1.17 | 1.63 ▼0.57 | 40.06 ▲3.25 |
Dashboard /wp-admin | 2,212 ▲21 | 5.83 ▲0.87 | 95.90 ▼10.86 | 40.29 ▼4.08 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.01 | 41.52 ▲3.83 | 36.65 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.30 ▲0.02 | 628.58 ▼14.53 | 52.70 ▼3.51 |
Media Library /wp-admin/upload.php | 1,397 ▲15 | 4.23 ▲0.01 | 98.73 ▼2.90 | 42.71 ▼1.45 |
U Post by Mail /wp-admin/options-general.php?page=cws-mail-configuration | 959 | 1.71 | 26.82 | 46.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/ultimate-post-by-mail/upostbymail.php+29
Constant WP_DEBUG already defined
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=cws-mail-configuration
- > Notice in wp-content/plugins/ultimate-post-by-mail/upostbymail.php+29
Constant WP_DEBUG already defined
- > GET request to /wp-admin/options-general.php?page=cws-mail-configuration
- > Notice in wp-content/plugins/ultimate-post-by-mail/admin/CWSAdmin.class.php+56
Undefined index: tab
- > GET request to /wp-admin/options-general.php?page=cws-mail-configuration
- > Notice in wp-content/plugins/ultimate-post-by-mail/includes/CWSMailChecker.class.php+297
Undefined index: cws_mail_security
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ultimate-post-by-mail/upostbymail.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'CWSAdmin' not found in wp-content/plugins/ultimate-post-by-mail/admin/CWSMailConfigurationServer.view.php:10
- > PHP Fatal error
Uncaught Error: Class 'CWSAdmin' not found in wp-content/plugins/ultimate-post-by-mail/admin/CWSMailConfigurationPost.view.php:9
- > PHP Fatal error
Uncaught Error: Class 'CWSAdmin' not found in wp-content/plugins/ultimate-post-by-mail/admin/CWSMailConfiguration.view.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
7 plugin tags: post by mail, postie, mail, publish, ultimate post by mail...
ultimate-post-by-mail/upostbymail.php 77% from 13 tests
"Ultimate Post by Mail" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 257 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("ultimate-post-by-mail.php" instead of "upostbymail.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin804 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 50 | 188 | 638 |
PO File | 1 | 50 | 60 | 137 |
JavaScript | 2 | 2 | 1 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 24.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 29 | 74.36% |
▷ Public methods | 32 | 82.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.95% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
No PNG files were detected