Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.09ms] Passed 4 tests
This is a short check of server-side resources used by Plaintext for the Newsletter plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.90 ▼13.65 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.69 ▼4.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.43 ▼0.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.07 ▼6.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.06 ▼0.27 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Plaintext for the Newsletter plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.27 ▲0.09 | 1.89 ▲0.12 | 41.31 ▼14.93 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▲0.11 | 95.91 ▼7.54 | 42.07 ▼1.10 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 38.11 ▼1.40 | 34.25 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.23 ▲0.23 | 642.84 ▲33.19 | 57.58 ▼0.27 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.20 ▼0.06 | 101.87 ▼2.87 | 40.19 ▼6.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plaintext-newsletter/plaintext-newsletter.php:31
- > PHP Fatal error
Uncaught Error: Class 'NewsletterAddon' not found in wp-content/plugins/plaintext-newsletter/plugin.php:10
- > PHP Fatal error
Uncaught Error: Class 'PlaintextMailerBase' not found in wp-content/plugins/plaintext-newsletter/mailer.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: plain text, newsletter, add-on
plaintext-newsletter/plaintext-newsletter.php Passed 13 tests
The principal PHP file in "Plaintext for the Newsletter plugin" v. 3.1 is loaded by WordPress automatically on each request
46 characters long description:
Plain text generator for The Newsletter Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin241 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 52 | 60 | 214 |
PO File | 1 | 3 | 6 | 26 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
PNG images were not found in this plugin