Benchmarks
Plugin footprint 83% 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.19MB] [CPU: ▼1.06ms] Passed 4 tests
Server-side resources used by Never Let Me Go
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 41.41 ▲2.08 |
Dashboard /wp-admin | 3.52 ▲0.21 | 48.68 ▼0.78 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 50.47 ▲4.03 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 86.90 ▼9.48 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 42.89 ▲3.92 |
Resign Setting /wp-admin/options-general.php?page=nlmg | 3.44 | 37.04 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Never Let Me Go
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲14 | 14.24 ▼0.35 | 1.74 ▲0.03 | 38.05 ▼2.28 |
Dashboard /wp-admin | 2,203 ▲35 | 5.56 ▼0.05 | 84.64 ▼1.49 | 37.38 ▼4.09 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.00 ▲0.02 | 33.73 ▼2.07 | 35.71 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.40 ▲5.14 | 680.28 ▲46.68 | 56.38 ▼20.46 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.16 ▼0.01 | 98.19 ▼4.26 | 44.16 ▲0.70 |
Resign Setting /wp-admin/options-general.php?page=nlmg | 1,266 | 2.10 | 33.08 | 32.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/never-let-me-go/never-let-me-go.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Application' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/Admin.php:9
- > PHP Fatal error
Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Application' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/Page.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/never-let-me-go/templates/setting.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/Command.php:13
- > PHP Fatal error
Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Singleton' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/Utility/Input.php:13
- > PHP Fatal error
Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Application' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo.php:8
- > PHP Fatal error
Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Application' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/WooCommerce.php:13
- > PHP Fatal error
Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Singleton' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/Pattern/Application.php:22
- > 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 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
2 plugin tags: account, delete
never-let-me-go/never-let-me-go.php Passed 13 tests
The primary PHP file in "Never Let Me Go" version 1.2.2 is used by WordPress to initiate all plugin functionality
54 characters long description:
If someone wants to leave your WordPress, let them go.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,797 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 296 | 672 | 1,358 |
PO File | 1 | 86 | 132 | 229 |
JavaScript | 5 | 19 | 19 | 87 |
JSON | 2 | 0 | 0 | 60 |
Sass | 2 | 6 | 0 | 53 |
Markdown | 1 | 4 | 0 | 8 |
CSS | 2 | 2 | 2 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 13.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 14 | 19.18% |
▷ Public methods | 66 | 90.41% |
▷ Protected methods | 6 | 8.22% |
▷ Private methods | 1 | 1.37% |
Functions | 11 | |
▷ Named functions | 5 | 45.45% |
▷ Anonymous functions | 6 | 54.55% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-nlmg.png | 1.80KB | 1.76KB | ▼ 2.01% |
dist/img/icon-nlmg.png | 1.75KB | 1.76KB | 0.00% |