Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼12.85ms] Passed 4 tests
Server-side resources used by LetterPress - Elevate Your WordPress Site's E-Mail Campaigns and Marketing
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 35.10 ▼11.79 |
Dashboard /wp-admin | 3.45 ▲0.11 | 46.85 ▼15.37 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 43.63 ▼2.55 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 82.30 ▼21.67 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.42 ▲4.36 |
Campaigns /wp-admin/admin.php?page=letterpress-campaigns | 3.36 | 33.36 |
Cron Job /wp-admin/admin.php?page=letterpress-cron | 3.34 | 33.67 |
LetterPress /wp-admin/admin.php?page=letterpress | 3.35 | 46.31 |
Subscribers /wp-admin/admin.php?page=letterpress-subscribers | 3.38 | 32.77 |
Settings /wp-admin/admin.php?page=letterpress-settings | 3.35 | 31.70 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_lp_subscribers |
wp_lp_campaigns |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
lp_last_checked_time |
widget_recent-comments |
widget_recent-posts |
LPRESS_VERSION |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LetterPress - Elevate Your WordPress Site's E-Mail Campaigns and Marketing
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲40 | 14.17 ▼0.18 | 1.45 ▼0.50 | 37.98 ▼9.05 |
Dashboard /wp-admin | 2,229 ▲55 | 5.64 ▲0.06 | 86.22 ▼10.57 | 36.52 ▼2.34 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 1.99 ▼0.02 | 36.92 ▼7.20 | 31.77 ▼4.19 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 18.22 ▼4.98 | 610.71 ▼3.08 | 60.76 ▲16.62 |
Media Library /wp-admin/upload.php | 1,440 ▲46 | 4.12 ▲0.01 | 98.66 ▼5.50 | 44.22 ▲0.48 |
Campaigns /wp-admin/admin.php?page=letterpress-campaigns | 801 | 2.00 | 24.58 | 25.43 |
Cron Job /wp-admin/admin.php?page=letterpress-cron | 1,010 | 2.11 | 23.33 | 27.54 |
LetterPress /wp-admin/admin.php?page=letterpress | 925 | 1.99 | 30.34 | 35.64 |
Subscribers /wp-admin/admin.php?page=letterpress-subscribers | 939 | 2.00 | 28.30 | 26.78 |
Settings /wp-admin/admin.php?page=letterpress-settings | 898 | 2.04 | 27.55 | 27.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_lp_campaigns
- wp_lp_subscribers
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- widget_recent-comments
- lp_last_checked_time
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- LPRESS_VERSION
- can_compress_scripts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 _e() in wp-content/plugins/letterpress/views/letterpress-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/letterpress/views/add_campaign.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/letterpress/views/letterpress.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/letterpress/classes/Subscribers_List.php on line 7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/letterpress/classes/Subscribers_List.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/letterpress/template/email-header.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/letterpress/views/letterpress-campaigns.php:1
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/letterpress/classes/Subscribers_List.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/letterpress/views/letterpress-subscribers.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/letterpress/views/edit_campaign.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: communication, email marketing, marketing strategy, subscription, email...
letterpress/letterpress.php 92% from 13 tests
The principal PHP file in "LetterPress - Elevate Your WordPress Site's E-Mail Campaigns and Marketing" v. 1.2.1 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,217 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 332 | 230 | 1,121 |
CSS | 1 | 4 | 1 | 96 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 1 | 1.64% |
▷ Public methods | 59 | 96.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.28% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin