Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+307
Non-static method MVNO_InstallMvnoSettings::create_mvno_settings_db() should not be called statically
Server metrics [RAM: ▼0.02MB] [CPU: ▼295.00ms] Passed 4 tests
Server-side resources used by MVNO Settings
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.10 ▲2.23 |
Dashboard /wp-admin | 3.41 ▲0.01 | 33.36 ▼4.88 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 39.35 ▲2.02 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 94.26 ▼1,170.08 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 24.67 ▼7.06 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_mvno_settings |
New WordPress options |
---|
my_db_version |
Browser metrics Passed 4 tests
Checking browser requirements for MVNO Settings
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲5 | 15.79 ▲0.03 | 5.66 ▼0.07 | 2.34 ▼0.20 |
Dashboard /wp-admin | 2,892 ▲31 | 6.08 ▲0.03 | 117.39 ▼18.64 | 153.29 ▼8.42 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.24 ▲0.00 | 59.02 ▼3.43 | 139.74 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,752 ▼0 | 21.03 ▼1.23 | 421.99 ▼6.85 | 159.24 ▲3.08 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.44 ▼0.05 | 144.10 ▲2.03 | 191.31 ▼5.26 |
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
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+307
Non-static method MVNO_UninstallMvnoSettings::remove_mvno_settings_db() should not be called statically
- Zombie WordPress options were found after uninstall: 1 option
- my_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/mvno-settings/templates/settings.php:3
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Requires php: The plugin version is formatted incorrectly
mvno-settings/mvno-settings.php 92% from 13 tests
"MVNO Settings" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin163 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 40 | 36 | 114 |
JavaScript | 1 | 3 | 14 | 48 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 1.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There are no PNG files in this plugin