Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/dsubscribers/includes/class-dsubscribers.php+51
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼59.23ms] Passed 4 tests
A check of server-side resources used by DSubscribers
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.97 ▼36.96 |
Dashboard /wp-admin | 2.05 ▼1.30 | 7.76 ▼56.05 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.05 ▼48.33 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.98 ▼95.57 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.31 ▼30.75 |
DSubscribers Settings /wp-admin/options-general.php?page=dsubscribers_settings | 2.05 | 7.06 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_dsubscribers |
New WordPress options |
---|
theysaidso_admin_options |
dsubscribers_version |
widget_dsubscribers_widget |
jal_db_version |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DSubscribers
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.75 ▼0.62 | 8.76 ▲7.03 | 39.00 ▼1.27 |
Dashboard /wp-admin | 2,226 ▲35 | 5.88 ▲0.03 | 110.79 ▲8.32 | 46.60 ▲2.03 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 2.02 ▼0.01 | 35.38 ▼4.47 | 33.24 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 23.20 ▲5.54 | 696.54 ▲6.38 | 52.36 ▼2.22 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.21 ▼0.00 | 109.55 ▲5.83 | 47.30 ▲4.56 |
DSubscribers Settings /wp-admin/options-general.php?page=dsubscribers_settings | 899 | 2.03 | 25.77 | 33.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/dsubscribers/includes/class-dsubscribers.php+51
Function create_function() is deprecated
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_dsubscribers
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_dsubscribers_widget
- dsubscribers_version
- widget_theysaidso_widget
- jal_db_version
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=dsubscribers_settings
- > Deprecated in wp-content/plugins/dsubscribers/includes/class-dsubscribers.php+51
Function create_function() is deprecated
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dsubscribers/includes/class-dsubscribers-list-table.php on line 5
- > 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/dsubscribers/includes/class-dsubscribers-list-table.php on line 5
- > 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/dsubscribers/includes/class-dsubscribers-list-table.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Subscribe form), #2 (Unsubscribe form), #3 (DSubscribers admin page), #4 (DSubscribers settings), #5 (DSubscribers widget)
dsubscribers/dsubscribers.php Passed 13 tests
The main PHP script in "DSubscribers" version 1.2.1 is automatically included on every request by WordPress
43 characters long description:
Manage subscribers from your site with ease
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected950 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 450 | 76 | 768 |
JavaScript | 2 | 62 | 11 | 94 |
PO File | 1 | 26 | 33 | 68 |
CSS | 1 | 11 | 4 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 3 | 5.56% |
▷ Public methods | 52 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.70% |
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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.36MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 92.63KB | 32.03KB | ▼ 65.42% |
screenshot-2.png | 37.85KB | 13.87KB | ▼ 63.36% |
screenshot-3.png | 72.12KB | 23.45KB | ▼ 67.48% |
screenshot-1.png | 38.41KB | 14.57KB | ▼ 62.07% |
(invalid) screenshot-5.png | 129.31KB | 0.00KB | ▼ 100.00% |