Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼8.73ms] Passed 4 tests
An overview of server-side resources used by Lana Email Logger
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 46.44 ▼8.28 |
Dashboard /wp-admin | 3.42 ▲0.11 | 55.47 ▼4.90 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 53.26 ▼0.96 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.54 ▼20.60 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 40.62 ▼1.12 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_lana_email_logger_logs |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Lana Email Logger: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.25 ▼0.03 | 1.99 ▲0.23 | 43.96 ▼0.48 |
Dashboard /wp-admin | 2,223 ▲43 | 5.62 ▲0.01 | 87.21 ▼5.57 | 40.28 ▼5.80 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.00 ▼0.01 | 36.39 ▼1.85 | 36.68 ▼2.48 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.02 ▼0.52 | 655.86 ▼58.89 | 60.46 ▼0.65 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.22 ▼0.09 | 100.46 ▼17.05 | 45.77 ▼5.03 |
Lana Email Logger /wp-admin/lana-email-logger.php | 26 | 0.42 | 0.22 | 17.02 |
Settings /wp-admin/lana-email-logger-settings.php | 26 | 0.42 | 0.11 | 6.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_lana_email_logger_logs
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/lana-email-logger/includes/class-lana-email-logger-logs-list-table.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/lana-email-logger.php
- > Network (severe)
wp-admin/lana-email-logger.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/lana-email-logger-settings.php
- > Network (severe)
wp-admin/lana-email-logger-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wp mail, send email, logger, email, log email
lana-email-logger/lana-email-logger.php Passed 13 tests
Analyzing the main PHP file in "Lana Email Logger" version 1.1.0
34 characters long description:
Logs all emails sent by WordPress.
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 detected2,128 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 1,205 |
PHP | 8 | 307 | 406 | 890 |
CSS | 1 | 4 | 2 | 18 |
JavaScript | 1 | 4 | 8 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 19.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 30 | |
▷ Static methods | 4 | 13.33% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/plugin-header.png | 28.91KB | 29.86KB | 0.00% |