Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼10.65ms] Passed 4 tests
This is a short check of server-side resources used by Simple newsletter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.06 ▼5.62 |
Dashboard /wp-admin | 3.46 ▲0.16 | 44.53 ▼13.99 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 44.68 ▼8.58 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 80.86 ▼14.41 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 33.75 ▼1.41 |
Email Newsletter /wp-admin/admin.php?page=wbnl | 3.33 | 35.27 |
Setting /wp-admin/admin.php?page=Setting | 3.32 | 38.48 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wbnl |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Simple newsletter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 13.98 ▼0.39 | 5.48 ▲3.81 | 40.12 ▼5.36 |
Dashboard /wp-admin | 2,252 ▲46 | 4.93 ▲0.08 | 105.36 ▲2.13 | 39.76 ▼3.74 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.03 ▲0.03 | 35.35 ▼5.87 | 34.18 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,552 ▲7 | 23.03 ▼0.24 | 650.62 ▲3.22 | 48.67 ▼8.74 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.20 ▼0.02 | 99.34 ▼6.66 | 46.92 ▲3.48 |
Email Newsletter /wp-admin/admin.php?page=wbnl | 1,053 | 1.76 | 25.70 | 28.92 |
Setting /wp-admin/admin.php?page=Setting | 868 | 1.84 | 25.96 | 25.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_wbnl
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simple-newsletter/includes/email.export.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > 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/simple-newsletter/includes/newsletter_list.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-newsletter/languages/common-strings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-newsletter/simple-newsletter.php:15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-newsletter/includes/newsletter_list.php on line 3
- > 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/simple-newsletter/includes/newsletter_list.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings page), #2 (Email lists), #3 (Output form)
simple-newsletter/simple-newsletter.php Passed 13 tests
"Simple newsletter" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Simple and custom newsletter that can use on any website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin538 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 68 | 116 | 430 |
PO File | 1 | 42 | 57 | 86 |
JavaScript | 2 | 0 | 0 | 20 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 20 | |
▷ Static methods | 5 | 25.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 10 | 76.92% |
▷ Anonymous functions | 3 | 23.08% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 14.70KB | 7.48KB | ▼ 49.13% |
screenshot-2.png | 24.93KB | 14.16KB | ▼ 43.19% |
screenshot-1.png | 7.63KB | 4.28KB | ▼ 43.94% |