84% custom-shipping-options-for-membermouse

Code Review | Custom Shipping Options for MemberMouse

WordPress plugin Custom Shipping Options for MemberMouse scored84%from 54 tests.

About plugin

  • Plugin page: custom-shipping-o...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: May 2, 2014
  • Latest release: Jan 2, 2015
  • Number of updates: 7
  • Update frequency: every 35.0 days
  • Top authors: morganestes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,282 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.15ms] Passed 4 tests

Analyzing server-side resources used by Custom Shipping Options for MemberMouse
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.56 ▲2.53
Dashboard /wp-admin3.32 ▲0.0151.57 ▲0.69
Posts /wp-admin/edit.php3.37 ▲0.0151.39 ▲3.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.92 ▼15.60
Media Library /wp-admin/upload.php3.24 ▲0.0140.51 ▲5.51

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Custom Shipping Options for MemberMouse
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.37 ▼0.241.73 ▼0.3044.89 ▼0.38
Dashboard /wp-admin2,198 ▲245.67 ▼0.0190.49 ▼9.4341.81 ▼4.72
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0641.85 ▲0.1140.18 ▲3.88
Add New Post /wp-admin/post-new.php1,526 ▼2217.69 ▼5.51637.51 ▲45.4352.18 ▲2.87
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.0896.15 ▼8.0442.66 ▼1.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-shipping-options-for-membermouse/mm-shipping-options.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: adopt-me, checkout, membermouse, shipping, extension...

custom-shipping-options-for-membermouse/mm-shipping-options.php 85% from 13 tests

The principal PHP file in "Custom Shipping Options for MemberMouse" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-shipping-options-for-membermouse.php" instead of "mm-shipping-options.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected89 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1142746
PHP1175343

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods114.29%
▷ 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected