Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼143.80ms] Passed 4 tests
A check of server-side resources used by LH Email Queue and Log
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.05 | 33.64 ▲0.34 |
Dashboard /wp-admin | 3.11 ▲0.06 | 48.21 ▲5.67 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 46.69 ▲0.67 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 89.24 ▼575.00 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 32.16 ▼1.19 |
Email Queue/Log /wp-admin/tools.php?page=lh-email-queue-and-log/lh-email-queue-and-log.php | 3.02 | 28.45 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, no new options
New tables |
---|
wp_lh_email_queue_log |
Browser metrics Passed 4 tests
Checking browser requirements for LH Email Queue and Log
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.25 ▲0.58 | 8.62 ▼0.47 | 48.15 ▲4.98 |
Dashboard /wp-admin | 2,997 ▲63 | 6.02 ▲0.07 | 140.83 ▼6.29 | 103.04 ▼3.79 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 66.34 ▲0.59 | 87.13 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,618 ▲3 | 21.41 ▲0.06 | 297.40 ▼13.34 | 97.37 ▼5.99 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.02 | 158.00 ▲10.52 | 110.65 ▼0.63 |
Email Queue/Log /wp-admin/tools.php?page=lh-email-queue-and-log/lh-email-queue-and-log.php | 1,033 | 2.06 | 52.32 | 68.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_lh_email_queue_log
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
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 fix the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-email-queue-and-log/lh-email-queue-and-log.php:360
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-email-queue-and-log/includes/partials/tools.php:3
- > 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/lh-email-queue-and-log/includes/lh-email-queue-log-menu-class.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lh-email-queue-and-log/includes/lh-email-queue-log-menu-class.php on line 5
- > 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/lh-email-queue-and-log/includes/lh-email-queue-log-menu-class.php on line 5
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: emails, queue, email, asynchronous
lh-email-queue-and-log/lh-email-queue-and-log.php Passed 13 tests
"LH Email Queue and Log" version 1.01's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
36 characters long description:
Creates an email queue for wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin242 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 243 | 60 | 242 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 10 | 43.48% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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 |
assets/images/track-log.png | 0.90KB | 0.09KB | ▼ 89.69% |