Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/domain-redirect/domain-redirect.php+27
Methods with the same name as their class will not be constructors in a future version of PHP; vm_domain_redirect has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼49.41ms] Passed 4 tests
Analyzing server-side resources used by Domain Redirect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 5.19 ▼39.15 |
Dashboard /wp-admin | 2.08 ▼1.23 | 5.42 ▼41.93 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.04 ▼37.37 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 7.05 ▼79.20 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.11 ▼26.90 |
Domain Redirections /wp-admin/options-general.php?page=vm_domain_redirections | 2.08 | 5.94 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Domain Redirect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.69 ▼0.92 | 1.80 ▼0.02 | 43.22 ▼1.44 |
Dashboard /wp-admin | 2,213 ▲28 | 5.88 ▲0.87 | 101.13 ▼4.06 | 39.10 ▼1.30 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.98 ▼0.03 | 34.58 ▼0.95 | 33.90 ▲1.87 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.25 ▲0.15 | 637.45 ▼28.08 | 47.48 ▼20.08 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.19 ▼0.05 | 96.81 ▼7.51 | 40.10 ▼4.99 |
Domain Redirections /wp-admin/options-general.php?page=vm_domain_redirections | 783 | 2.06 | 28.33 | 32.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/domain-redirect/domain-redirect.php+27
Methods with the same name as their class will not be constructors in a future version of PHP; vm_domain_redirect has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=vm_domain_redirections
- > Deprecated in wp-content/plugins/domain-redirect/domain-redirect.php+27
Methods with the same name as their class will not be constructors in a future version of PHP; vm_domain_redirect has a deprecated constructor
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/domain-redirect/domain-redirect.php:40
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: redirect, domain name, vanmeerdervoort
domain-redirect/domain-redirect.php Passed 13 tests
"Domain Redirect" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
Redirects users to specific page depending on the domain name they entered your site with.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin62 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 30 | 62 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected