10% mvno-settings

Code Review | MVNO Settings

WordPress plugin MVNO Settings scored 10% from 54 tests.

About plugin

  • Plugin page: mvno-settings
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4.2
  • WordPress version: 5.9.2
  • First release: Jul 15, 2020
  • Latest release: Dec 15, 2020
  • Number of updates: 4
  • Update frequency: every 38.3 days
  • Top authors: mvnop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 190 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.10 ▲2.23
Dashboard /wp-admin3.41 ▲0.0133.36 ▼4.88
Posts /wp-admin/edit.php3.65 ▲0.0139.35 ▲2.02
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.26 ▼1,170.08
Media Library /wp-admin/upload.php3.30 ▼0.0024.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲515.79 ▲0.035.66 ▼0.072.34 ▼0.20
Dashboard /wp-admin2,892 ▲316.08 ▲0.03117.39 ▼18.64153.29 ▼8.42
Posts /wp-admin/edit.php2,691 ▼33.24 ▲0.0059.02 ▼3.43139.74 ▼1.18
Add New Post /wp-admin/post-new.php1,752 ▼021.03 ▼1.23421.99 ▼6.85159.24 ▲3.08
Media Library /wp-admin/upload.php1,698 ▼05.44 ▼0.05144.10 ▲2.03191.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

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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP64036114
JavaScript131448
CSS1001

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 code0.22
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.15
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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