83% mobile-cost-control-automated

Code Review | Mcc Automated

WordPress plugin Mcc Automated scored83%from 54 tests.

About plugin

  • Plugin page: mobile-cost-contr...
  • Plugin version: 1.2.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.13-6.0.2
  • WordPress version: 6.3.1
  • First release: Jun 5, 2021
  • Latest release: Sep 19, 2022
  • Number of updates: 41
  • Update frequency: every 11.5 days
  • Top authors: validas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /874 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▼4.69ms] Passed 4 tests

Server-side resources used by Mcc Automated
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3737.10 ▼5.85
Dashboard /wp-admin3.70 ▲0.4047.70 ▼1.95
Posts /wp-admin/edit.php3.81 ▲0.4646.94 ▲3.33
Add New Post /wp-admin/post-new.php6.28 ▲0.3979.28 ▼14.28
Media Library /wp-admin/upload.php3.62 ▲0.3937.92 ▲4.09
Email Notification /wp-admin/admin.php?page=mcc_automated_notification3.6033.49
Labels /wp-admin/admin.php?page=mcc_automated_menu3.6032.98
Offer Configuration /wp-admin/admin.php?page=mcc_automated_configuration3.5930.15

Server storage [IO: ▲0.37MB] [DB: ▲0.06MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: 6 new tables, 20 new options
New tables
wp_device_report
wp_verizon_rdd
wp_mcc_automated
wp_plan_categories
wp_att_rdd
wp_uit_vzw
New WordPress options
mcc_automated_savings_formula_percent
mcc_automated_form_instructions
mcc_automated_customer_name
mcc_automated_giga_usage_label
widget_recent-comments
mcc_automated_second_heading
widget_theysaidso_widget
mcc_automated_form_notif_template
mcc_automated_greeting
mcc_automated_total_phone_count_label
...

Browser metrics Passed 4 tests

Mcc Automated: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.59 ▼0.801.87 ▼0.0737.53 ▼6.26
Dashboard /wp-admin2,239 ▲485.80 ▲0.92110.63 ▲4.6568.85 ▲26.68
Posts /wp-admin/edit.php2,122 ▲332.00 ▲0.0138.01 ▼0.6134.46 ▼0.56
Add New Post /wp-admin/post-new.php1,548 ▲2918.11 ▼5.10744.75 ▲82.5262.70 ▲10.81
Media Library /wp-admin/upload.php1,415 ▲244.23 ▲0.0298.57 ▼0.1874.65 ▲27.86
Email Notification /wp-admin/admin.php?page=mcc_automated_notification8912.0726.7829.58
Labels /wp-admin/admin.php?page=mcc_automated_menu9852.2023.2128.56
Offer Configuration /wp-admin/admin.php?page=mcc_automated_configuration8582.0223.7325.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mobile-cost-control-automated/admin/partials/mcc-automated-configurations.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mobile-cost-control-automated/admin/partials/mcc-automated-form-1-option.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mobile-cost-control-automated/public/partials/mcc-automated-form-1.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mobile-cost-control-automated/admin/partials/mcc-automated-email-notification.php:19

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: You can look at the official readme.txt

mobile-cost-control-automated/mcc-automated.php 77% from 13 tests

The primary PHP file in "Mcc Automated" version 1.2.8 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("mobile-cost-control-automated.php" instead of "mcc-automated.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

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
Success! There were no dangerous files found in this plugin3,784 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP161,0096793,577
JavaScript32527107
CSS3188100

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity7.44
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods46
▷ Static methods919.57%
▷ Public methods4189.13%
▷ Protected methods00.00%
▷ Private methods510.87%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin