Benchmarks
Plugin footprint 83% 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.01MB] [CPU: ▼5.35ms] Passed 4 tests
An overview of server-side resources used by Direct Admin Reseller Connection
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.94 ▼8.66 |
Dashboard /wp-admin | 3.32 ▼0.02 | 51.78 ▼10.99 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.02 ▼1.86 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 96.27 ▲5.05 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.29 ▲0.11 |
Direct Admin Settings /wp-admin/options-general.php?page=darc-nh | 3.19 | 34.16 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
darc_nh_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Direct Admin Reseller Connection
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲165 | 13.55 ▼0.68 | 8.76 ▲6.86 | 40.13 ▼2.20 |
Dashboard /wp-admin | 2,225 ▲19 | 5.86 ▼0.02 | 99.88 ▼2.94 | 40.28 ▲0.25 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.01 | 40.24 ▲3.78 | 36.68 ▲3.18 |
Add New Post /wp-admin/post-new.php | 1,557 ▲26 | 18.40 ▼4.65 | 616.43 ▼18.42 | 54.34 ▲3.11 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.02 | 93.85 ▼13.66 | 43.35 ▼2.85 |
Direct Admin Settings /wp-admin/options-general.php?page=darc-nh | 712 | 1.16 | 8.48 | 21.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- darc_nh_version
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=darc-nh
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/direct-admin-reseller-connection/direct-admin-reseller-connection.php on line 79 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/direct-admin-reseller-connection/direct-admin-reseller-connection.php(79): do_settings_fields()
#1 wp-includes/class-wp-hook.php(310): plugin_options_darc_nh()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP 50% 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 take a closer look at the following
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/direct-admin-reseller-connection/darc-packages.php
- > /wp-content/plugins/direct-admin-reseller-connection/darc-dashboard.php
- > /wp-content/plugins/direct-admin-reseller-connection/darc-functions.php
- > /wp-content/plugins/direct-admin-reseller-connection/darc-domain.php
- > /wp-content/plugins/direct-admin-reseller-connection/direct-admin-reseller-connection.php
- > /wp-content/plugins/direct-admin-reseller-connection/darc-widget.php
- > /wp-content/plugins/direct-admin-reseller-connection/darc-socket.php
- > /wp-content/plugins/direct-admin-reseller-connection/darc-mail.php
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== direct-admin-reseller-connection ===
)
direct-admin-reseller-connection/direct-admin-reseller-connection.php Passed 13 tests
"Direct Admin Reseller Connection" version 0.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
131 characters long description:
Direct Admin Reseller Connection let's your users manage their Direct Admin account with their Wordpress website profile and login.
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
Good job! No executable or dangerous file extensions detected1,300 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 211 | 257 | 1,006 |
PO File | 1 | 152 | 229 | 294 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin