Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/simple-newsletter-br/class_newsletter.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; controllerNewsletter has a deprecated constructor
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.55ms] Passed 4 tests
Analyzing server-side resources used by Simple Newsletter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 33.88 ▼6.46 |
Dashboard /wp-admin | 3.33 ▲0.02 | 41.93 ▼3.39 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 40.52 ▼7.11 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.05 ▼5.25 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 30.66 ▼1.46 |
Simple Newsletter /wp-admin/options-general.php?page=simplenewsletter-admin | 3.28 | 29.80 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: 1 new table, 7 new options
New tables |
---|
simplenewsletter_subscriptions |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_widgetsimplenewsletter |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Newsletter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲155 | 13.74 ▼0.55 | 4.63 ▲2.84 | 37.67 ▼8.04 |
Dashboard /wp-admin | 2,226 ▲47 | 4.86 ▼1.00 | 114.66 ▲11.84 | 42.82 ▲0.02 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.04 ▲0.01 | 33.42 ▼2.07 | 32.81 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,530 ▲1 | 17.76 ▼0.61 | 643.01 ▼29.30 | 67.17 ▲8.30 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.26 ▲0.11 | 95.64 ▲2.08 | 39.77 ▼5.37 |
Simple Newsletter /wp-admin/options-general.php?page=simplenewsletter-admin | 1,093 | 2.06 | 30.64 | 32.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- simplenewsletter_subscriptions
- The uninstall procedure has failed, leaving 7 options in the database
- widget_widgetsimplenewsletter
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-newsletter-br/simple-newsletter.php:202
- > PHP Fatal error
Uncaught Error: Class 'controllerNewsletter' not found in wp-content/plugins/simple-newsletter-br/views/admin_grid.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/simple-newsletter-br/views/admin_form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-newsletter-br/views/user_form.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: newsletter, email, email template, shortcode, sidebar...
simple-newsletter-br/simple-newsletter.php 92% from 13 tests
The main PHP file in "Simple Newsletter" ver. 0.5.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-newsletter-br.php" instead of "simple-newsletter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin872 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 119 | 22 | 570 |
PO File | 1 | 55 | 57 | 128 |
HTML | 1 | 0 | 0 | 77 |
JavaScript | 2 | 11 | 0 | 67 |
Markdown | 1 | 6 | 0 | 19 |
SQL | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.46 |
▷ 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 | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/newsletter.png | 14.92KB | 6.48KB | ▼ 56.58% |