Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.39ms] Passed 4 tests
A check of server-side resources used by OU Newsletter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.31 ▼4.07 |
Dashboard /wp-admin | 3.39 ▲0.09 | 56.58 ▲1.73 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 52.06 ▲0.41 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 89.53 ▼21.13 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 38.48 ▼0.78 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_onnewsletters |
wp_onnewsletterusers |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
jal_db_version |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by OU Newsletter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲177 | 13.57 ▼0.64 | 4.90 ▲3.25 | 40.95 ▲1.16 |
Dashboard /wp-admin | 2,219 ▲31 | 5.83 ▲0.94 | 97.15 ▼11.21 | 40.41 ▼1.32 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.04 ▲0.07 | 35.62 ▼3.17 | 34.15 ▼3.17 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.08 ▼0.43 | 694.28 ▲48.81 | 61.95 ▲3.42 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.21 ▼0.04 | 100.55 ▼5.81 | 45.47 ▼3.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- jal_db_version
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Screenshot 4) image required
ou-newsletter/index.php 92% from 13 tests
The main file in "OU Newsletter" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ou-newsletter.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,161 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 170 | 22 | 1,161 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 12.27KB | 7.34KB | ▼ 40.19% |
screenshot-3.png | 10.75KB | 6.17KB | ▼ 42.65% |
screenshot-1.png | 7.83KB | 4.90KB | ▼ 37.35% |
screenshot-4.png | 10.80KB | 6.24KB | ▼ 42.28% |