Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼9.01ms] Passed 4 tests
Analyzing server-side resources used by Partners
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 36.94 ▼6.31 |
Dashboard /wp-admin | 3.41 ▲0.06 | 48.24 ▼17.30 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.63 ▲2.23 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.13 ▼5.69 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.53 ▼6.75 |
All Members /wp-admin/admin.php?page=mdpartners | 3.30 | 33.60 |
Settings /wp-admin/admin.php?page=mdpartners_settings | 3.30 | 33.47 |
Denied Email /wp-admin/admin.php?page=mdpartners_denied_email | 3.33 | 30.92 |
Approved Email /wp-admin/admin.php?page=mdpartners_approved_email | 3.33 | 30.12 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_mdpartners |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
mdpartners_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Partners
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 14.35 ▲0.00 | 1.64 ▼0.25 | 37.59 ▼5.90 |
Dashboard /wp-admin | 2,241 ▲64 | 5.62 ▲0.01 | 93.92 ▼9.28 | 38.85 ▼3.77 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.05 ▲0.08 | 38.19 ▼0.52 | 42.27 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.04 ▼0.53 | 682.89 ▼5.76 | 60.14 ▲0.34 |
Media Library /wp-admin/upload.php | 1,448 ▲45 | 4.23 ▲0.07 | 104.94 ▲7.11 | 45.32 ▼1.22 |
All Members /wp-admin/admin.php?page=mdpartners | 1,014 | 2.05 | 25.52 | 27.76 |
Settings /wp-admin/admin.php?page=mdpartners_settings | 1,053 | 2.17 | 23.42 | 31.82 |
Denied Email /wp-admin/admin.php?page=mdpartners_denied_email | 910 | 2.04 | 23.90 | 30.51 |
Approved Email /wp-admin/admin.php?page=mdpartners_approved_email | 910 | 2.04 | 24.01 | 33.21 |
Uninstaller [IO: ▲0.13MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attentionThe uninstall procedure failed, leaving 1 table in the database This plugin does not fully uninstall, leaving 8 options in the database
- This plugin did not uninstall without warnings or errors
- > Error in wp-content/plugins/partners/inc/MightyDev/Partners.php+19
Uncaught ArgumentCountError: Too few arguments to function MightyDev\WordPress\Partners::__construct(), 0 passed in wp-content/plugins/partners/uninstall.php on line 9 and exactly 1 expected in wp-content/plugins/partners/inc/MightyDev/Partners.php:19
Stack trace:
#0 wp-content/plugins/partners/uninstall.php(9): MightyDev\WordPress\Partners->__construct()
#1 wp-admin/includes/plugin.php(1245): include_once('/var/www/wordpr...')
#2 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall successfully, leaving 22 files (0.13MB) in the plugin directory
- (new file) inc/MightyDev/Partners.php
- (new file) inc/WPAlchemy/Factory.php
- (new file) inc/WPAlchemy/Page.php
- (new file) inc/Symfony/Component/ClassLoader/Psr4ClassLoader.php
- (new file) inc/WPAlchemy/Notice.php
- (new file) inc/approved-email.php
- (new file) inc/autoload.php
- (new file) inc/MightyDev/Nooz.php
- (new file) inc/MightyDev/FormField.php
- (new file) inc/WPAlchemy/MetaBox.php
- ...
- wp_mdpartners
- widget_recent-posts
- widget_theysaidso_widget
- mdpartners_db_version
- recovery_mode_email_last_sent
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 0% 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
The following issues need your attention
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/partners/inc/approved-email.php
- > /wp-content/plugins/partners/inc/login-form.php
- > /wp-content/plugins/partners/inc/forgot-password-form.php
- > /wp-content/plugins/partners/inc/registration-form.php
- > /wp-content/plugins/partners/inc/denied-email.php
- > /wp-content/plugins/partners/inc/default-pages.php
- > /wp-content/plugins/partners/inc/reset-password-form.php
- 50× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: nonce in wp-content/plugins/partners/inc/approved-email.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/partners/inc/registration-form.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function MightyDev\\WordPress\\get_bloginfo() in wp-content/plugins/partners/inc/MightyDev/Partners.php:44
- > PHP Notice
Undefined variable: option_name in wp-content/plugins/partners/inc/denied-email.php on line 25
- > PHP Notice
Undefined variable: form in wp-content/plugins/partners/inc/forgot-password-form.php on line 1
- > PHP Notice
Undefined variable: option_name in wp-content/plugins/partners/inc/approved-email.php on line 20
- > PHP Notice
Undefined variable: option_name in wp-content/plugins/partners/inc/approved-email.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/partners/inc/WPAlchemy/MetaBox.php:16
- > PHP Notice
Undefined variable: mb in wp-content/plugins/partners/inc/coverage-meta.php on line 21
- > PHP Notice
Undefined variable: option_name in wp-content/plugins/partners/inc/denied-email.php on line 21
- > PHP Notice
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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Manage registered members), #2 (Robust settings), #3 (Assisted default page creation)
- Plugin Name: You should set the name of your plugin on the first line (
=== partners ===
)
partners/partners.php Passed 13 tests
The main PHP script in "Partners" version 0.2.0 is automatically included on every request by WordPress
54 characters long description:
Creates a fenced membership area with private content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,164 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 809 | 910 | 3,164 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 30.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 239.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 151 | |
▷ Static methods | 8 | 5.30% |
▷ Public methods | 138 | 91.39% |
▷ Protected methods | 11 | 7.28% |
▷ Private methods | 2 | 1.32% |
Functions | 17 | |
▷ Named functions | 9 | 52.94% |
▷ Anonymous functions | 8 | 47.06% |
Constants | 17 | |
▷ Global constants | 17 | 100.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
There are no PNG files in this plugin