Benchmarks
Plugin footprint 65% 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.08MB] [CPU: ▼6.18ms] Passed 4 tests
A check of server-side resources used by Domainer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.08 | 50.02 ▼10.23 |
Dashboard /wp-admin | 3.42 ▲0.09 | 46.21 ▼7.01 |
Posts /wp-admin/edit.php | 3.53 ▲0.15 | 48.81 ▲0.96 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.08 | 83.99 ▼8.45 |
Media Library /wp-admin/upload.php | 3.34 ▲0.08 | 38.49 ▲4.07 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Domainer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.78 ▲0.40 | 2.02 ▼0.43 | 44.01 ▼8.08 |
Dashboard /wp-admin | 2,213 ▲22 | 5.85 ▼0.03 | 105.41 ▼9.74 | 40.82 ▼1.98 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.03 | 34.29 ▼0.32 | 36.45 ▲4.06 |
Add New Post /wp-admin/post-new.php | 1,549 ▲7 | 23.22 ▲4.82 | 681.99 ▲13.52 | 58.38 ▲2.28 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.24 ▲0.06 | 108.11 ▲10.25 | 47.15 ▲0.24 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Error in wp-content/plugins/domainer/uninstall.php+35
Uncaught Error: Call to undefined function Domainer\get_sites() in wp-content/plugins/domainer/uninstall.php:35
Stack trace:
#0 wp-content/plugins/domainer/uninstall.php(51): Domainer\uninstall()
#1 wp-admin/includes/plugin.php(1245): include_once('/var/www/wordpr...')
#2 wp-admin/includes/plugin.php(960): uninstall_plugin() - This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/domainer/uninstall.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Domainer\\Handler' not found in wp-content/plugins/domainer/includes/class-domainer-system.php:23
- > PHP Fatal error
Uncaught Error: Class 'Domainer\\Model' not found in wp-content/plugins/domainer/includes/class-domainer-domain.php:23
- > PHP Fatal error
Uncaught Error: Class 'Domainer\\Handler' not found in wp-content/plugins/domainer/includes/class-domainer-documenter.php:23
- > PHP Fatal error
Uncaught Error: Class 'Domainer\\Handler' not found in wp-content/plugins/domainer/includes/class-domainer-manager.php:23
- > PHP Fatal error
Uncaught Error: Class 'Domainer\\Handler' not found in wp-content/plugins/domainer/includes/class-domainer-backend.php:23
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/domainer/sunrise.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined method stdClass::get_row() in wp-content/plugins/domainer/sunrise.php:47
- > PHP Fatal error
Uncaught Error: Class 'Domainer\\Handler' not found in wp-content/plugins/domainer/includes/class-domainer-installer.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function is_ssl() in wp-content/plugins/domainer/domainer.php:94
- > PHP Warning
Creating default object from empty value in wp-content/plugins/domainer/sunrise.php on line 30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: domain management, multisite, domain mapping
domainer/domainer.php Passed 13 tests
The primary PHP file in "Domainer" version 1.2.1 is used by WordPress to initiate all plugin functionality
50 characters long description:
Domain mapping management for WordPress Multisite.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,746 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 548 | 1,947 | 1,631 |
JavaScript | 1 | 15 | 17 | 57 |
Sass | 2 | 10 | 0 | 56 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 22.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 10 | 100.00% |
Methods | 104 | |
▷ Static methods | 97 | 93.27% |
▷ Public methods | 88 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 15.38% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin