77% simple-business-data

Code Review | Simple Business Data

WordPress plugin Simple Business Data scored77%from 54 tests.

About plugin

  • Plugin page: simple-business-data
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Mar 3, 2015
  • Number of updates: 5
  • Update frequency: every 6.8 days
  • Top authors: DMBarber (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,547 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Simple Business Data
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.52 ▼5.18
Dashboard /wp-admin3.31 ▼0.0446.16 ▼21.17
Posts /wp-admin/edit.php3.36 ▲0.0048.82 ▼0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.46 ▼17.48
Media Library /wp-admin/upload.php3.23 ▲0.0037.88 ▲1.83

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Simple Business Data
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▲0.101.76 ▲0.0347.21 ▲4.76
Dashboard /wp-admin2,195 ▲155.58 ▼0.0792.84 ▲3.4242.55 ▲0.30
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0336.10 ▼1.3333.45 ▼0.22
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.00669.65 ▼11.9362.68 ▲4.28
Media Library /wp-admin/upload.php1,397 ▼04.21 ▲0.02105.16 ▼9.9043.87 ▼4.56

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% 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 0% 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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-business-data/templates/simple-business-data-social-template.php
    • > /wp-content/plugins/simple-business-data/simple-business-data.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/simple-business-data/templates/simple-business-data-template.php on line 21
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/simple-business-data/templates/simple-business-data-template.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/simple-business-data/templates/simple-business-data-admin-page.php:12
    • > PHP Notice
      Undefined variable: sites in wp-content/plugins/simple-business-data/templates/simple-business-data-social-template.php on line 6
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/simple-business-data/templates/simple-business-data-social-template.php on line 6
    • > PHP Notice
      Undefined variable: show_icon in wp-content/plugins/simple-business-data/templates/simple-business-data-template.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-business-data/templates/simple-business-data-template.php:36
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/simple-business-data/templates/simple-business-data-template.php on line 19
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/simple-business-data/templates/simple-business-data-template.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% 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 need to be fixed:
  • Tags: Please reduce the number of tags, currently 32 tag instead of maximum 10
The official readme.txt is a good inspiration

simple-business-data/simple-business-data.php 77% from 13 tests

"Simple Business Data" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")
  • Domain Path: Please prefix the domain path with a forward slash character ("/")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Good job! No executable or dangerous file extensions detected555 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP594151399
CSS2515156

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods314.29%
▷ Public methods2095.24%
▷ Protected methods14.76%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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