Benchmarks
Plugin footprint 65% 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.12MB] [CPU: ▼6.57ms] Passed 4 tests
Server-side resources used by ERE Download Document
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 46.78 ▲2.41 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.64 ▼5.62 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.47 ▲0.52 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 85.28 ▼23.57 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.80 ▲4.50 |
Download Management /wp-admin/admin.php?page=ered-download-management | 3.31 | 37.41 |
Settings /wp-admin/admin.php?page=ered-settings | 3.30 | 34.77 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ered_email_download |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ERE Download Document
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,005 ▲259 | 13.79 ▲0.43 | 8.41 ▲4.14 | 42.09 ▼2.92 |
Dashboard /wp-admin | 2,251 ▲66 | 4.96 ▼0.86 | 111.15 ▼4.04 | 40.62 ▼4.89 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.11 ▲0.11 | 38.54 ▲2.44 | 33.11 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,550 ▲30 | 23.21 ▲0.10 | 647.84 ▼37.80 | 36.81 ▼16.29 |
Media Library /wp-admin/upload.php | 1,424 ▲39 | 4.29 ▲0.10 | 98.99 ▼1.21 | 41.46 ▼1.07 |
Download Management /wp-admin/admin.php?page=ered-download-management | 886 | 1.92 | 24.62 | 27.51 |
Settings /wp-admin/admin.php?page=ered-settings | 887 | 1.92 | 24.61 | 27.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_ered_email_download
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ere-download-document/inc/admin.class.php
- > /wp-content/plugins/ere-download-document/inc/ajax.class.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ere-download-document/admin/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ere-download-document/templates/popup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function ERED() in wp-content/plugins/ere-download-document/admin/templates/download-management.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ere-download-document/inc/functions.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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: download, download document, essential real estate, real estate, property...
ere-download-document/ere-download-document.php 92% from 13 tests
This is the main PHP file of "ERE Download Document" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,571 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 401 | 165 | 1,924 |
CSS | 8 | 140 | 154 | 1,048 |
PHP | 9 | 103 | 110 | 599 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 44 | |
▷ Static methods | 5 | 11.36% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected