77% wp-master-business-menu

Code Review | WP Master Business Menu

WordPress plugin WP Master Business Menu scored77%from 54 tests.

About plugin

  • Plugin page: wp-master-busines...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.4
  • WordPress version: 6.3.1
  • First release: May 8, 2017
  • Latest release: May 16, 2017
  • Number of updates: 4
  • Update frequency: every 2.3 days
  • Top authors: devcon1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /705 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.10MB] [CPU: ▼6.51ms] Passed 4 tests

This is a short check of server-side resources used by WP Master Business Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.96 ▼8.27
Dashboard /wp-admin3.40 ▲0.0948.37 ▲0.50
Posts /wp-admin/edit.php3.51 ▲0.1553.90 ▲10.07
Add New Post /wp-admin/post-new.php6.00 ▲0.1286.05 ▼23.68
Media Library /wp-admin/upload.php3.32 ▲0.0935.73 ▲5.43
Instructions /wp-admin/admin.php?page=wpm_business_menu_instruction3.2932.04
All Business Menus /wp-admin/edit.php?post_type=wpm_business_menu3.3636.11

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Master Business Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲10013.32 ▼1.061.72 ▼0.2243.63 ▼3.04
Dashboard /wp-admin2,232 ▲445.88 ▲0.79110.21 ▼8.7685.32 ▲41.87
Posts /wp-admin/edit.php2,135 ▲462.20 ▲0.1636.57 ▼2.7933.55 ▼7.32
Add New Post /wp-admin/post-new.php1,704 ▲17522.55 ▲4.44662.80 ▲10.0231.03 ▼12.27
Media Library /wp-admin/upload.php1,423 ▲354.21 ▼0.0399.44 ▼6.4575.38 ▲32.16
Instructions /wp-admin/admin.php?page=wpm_business_menu_instruction8981.8024.2330.80
All Business Menus /wp-admin/edit.php?post_type=wpm_business_menu1,1172.1631.4533.15

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-master-business-menu/admin/partials/wpm-business-menu-admin-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_title() in wp-content/plugins/wp-master-business-menu/public/partials/wpm-business-menu-public-display.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (wpmbm-1.png), #2 (wpmbm-2.png)
You can look at the official readme.txt

wp-master-business-menu/wpm-business-menu.php 77% from 13 tests

The main PHP script in "WP Master Business Menu" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-master-business-menu.php" instead of "wpm-business-menu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected700 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP16143570498
CSS219134
JavaScript2113447
SVG40421

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wpmbm-1.png59.26KB27.79KB▼ 53.11%
wpmbm-2.png38.52KB15.99KB▼ 58.49%