72% runmybusiness-listings

Code Review | RunMyBusiness

WordPress plugin RunMyBusiness scored72%from 54 tests.

About plugin

  • Plugin page: runmybusiness-lis...
  • Plugin version: 1.0.73
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Sep 5, 2015
  • Latest release: Apr 25, 2017
  • Number of updates: 130
  • Update frequency: every 5.7 days
  • Top authors: runmybusiness (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,245 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.23MB] [CPU: ▼3.28ms] Passed 4 tests

Server-side resources used by RunMyBusiness
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2240.75 ▼3.04
Dashboard /wp-admin3.52 ▲0.2254.79 ▼1.60
Posts /wp-admin/edit.php3.64 ▲0.2853.86 ▲6.24
Add New Post /wp-admin/post-new.php6.28 ▲0.3997.71 ▼10.62
Media Library /wp-admin/upload.php3.45 ▲0.2238.29 ▲2.13
RunMyBusiness Settings /wp-admin/options-general.php?page=runmybusiness_setting_admin3.3934.57
Add New /wp-admin/post-new.php?post_type=rmb-listing6.2686.00
RunMyBusiness Sync /wp-admin/tools.php?page=runmybusiness_tools3.4133.20
Listings /wp-admin/edit.php?post_type=rmb-listing3.4939.55

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for RunMyBusiness
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9814.46 ▲0.101.74 ▼0.3242.67 ▼3.08
Dashboard /wp-admin2,246 ▲555.87 ▼0.03102.08 ▼2.9638.07 ▼5.85
Posts /wp-admin/edit.php2,126 ▲342.02 ▲0.0541.31 ▲0.3930.97 ▼4.36
Add New Post /wp-admin/post-new.php1,562 ▲3418.05 ▼0.19713.24 ▲79.8645.64 ▼12.88
Media Library /wp-admin/upload.php1,422 ▲404.19 ▼0.0399.64 ▼4.6036.49 ▼7.40
RunMyBusiness Settings /wp-admin/options-general.php?page=runmybusiness_setting_admin1,0012.0624.6131.28
Add New /wp-admin/post-new.php?post_type=rmb-listing6,19722.59903.2426.18
RunMyBusiness Sync /wp-admin/tools.php?page=runmybusiness_tools7882.0524.8128.60
Listings /wp-admin/edit.php?post_type=rmb-listing1,0992.0033.5630.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=runmybusiness_setting_admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=runmybusiness_setting_admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/runmybusiness-listings/sync-cli.php
  • 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/runmybusiness-listings/includes/sync-all.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/runmybusiness-listings/includes/template-single-listing.php:3
    • > PHP Notice
      Undefined variable: runmybusiness_listing_url in wp-content/plugins/runmybusiness-listings/includes/sync-listings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/runmybusiness-listings/run-my-business.php:13
    • > PHP Notice
      Undefined variable: runmybusiness_rates_url in wp-content/plugins/runmybusiness-listings/rates/update-rates.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/runmybusiness-listings/includes/shortcode-listings.php:3
    • > PHP Notice
      Undefined variable: runmybusiness_comparables_url in wp-content/plugins/runmybusiness-listings/includes/sync-comparables.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/runmybusiness-listings/includes/shortcode-rates-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/runmybusiness-listings/includes/shortcode-signup-form.php:3
    • > PHP Notice
      Undefined variable: context in wp-content/plugins/runmybusiness-listings/includes/sync-listings.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: runmybusiness, realestate, properties, listings

runmybusiness-listings/run-my-business.php 92% from 13 tests

Analyzing the main PHP file in "RunMyBusiness" version 1.0.73
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("runmybusiness-listings.php" instead of "run-my-business.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,115 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP264793663,052
CSS111059
JSON1004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity164.50
▷ Minimum class complexity131.00
▷ Maximum class complexity198.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods85
▷ Static methods11.18%
▷ Public methods6981.18%
▷ Protected methods1618.82%
▷ Private methods00.00%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants23100.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 were not PNG files found in your plugin