10% biz-things

Code Review | Business-things

WordPress plugin Business-things scored10%from 54 tests.

About plugin

  • Plugin page: biz-things
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.5
  • WordPress version: 6.3.1
  • First release: Apr 2, 2016
  • Latest release: Mar 31, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: binarygary (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /882 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/biz-things/biz-things.php+122
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼56.75ms] Passed 4 tests

Server-side resources used by Business-things
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.65 ▼41.41
Dashboard /wp-admin2.05 ▼1.265.25 ▼41.43
Posts /wp-admin/edit.php2.05 ▼1.315.66 ▼47.70
Add New Post /wp-admin/post-new.php2.05 ▼3.845.12 ▼96.46
Media Library /wp-admin/upload.php2.05 ▼1.185.42 ▼28.36

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Business-things
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.37 ▼0.221.75 ▼0.0144.50 ▼1.90
Dashboard /wp-admin2,214 ▲405.55 ▼0.1084.65 ▼8.7039.67 ▼1.25
Posts /wp-admin/edit.php2,116 ▲162.00 ▼0.0339.58 ▲3.9637.81 ▲4.98
Add New Post /wp-admin/post-new.php1,549 ▲2323.11 ▼0.00663.54 ▲53.7064.71 ▲13.80
Media Library /wp-admin/upload.php1,413 ▲194.24 ▲0.03101.61 ▲0.8344.13 ▼0.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/biz-things/biz-things.php+122
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_bizthings_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/biz-things/biz-things.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("hhttp://www.fostercloset.org/support.html")
You can take inspiration from this readme.txt

biz-things/biz-things.php Passed 13 tests

The entry point to "Business-things" version 0.0.1 is a PHP file that has certain tags in its header comment area
52 characters long description:
Adds a widget that displays your Google Places data.

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
Success! There were no dangerous files found in this plugin153 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

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.27
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There were not PNG files found in your plugin