84% business-one-toolkit

Code Review | Business One ToolKit

WordPress plugin Business One ToolKit scored84%from 54 tests.

About plugin

  • Plugin page: business-one-toolkit
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.0
  • WordPress version: 6.3.1
  • First release: Oct 1, 2014
  • Latest release: Dec 10, 2014
  • Number of updates: 6
  • Update frequency: every 11.7 days
  • Top authors: burakkaptan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /28,182 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.12MB] [CPU: ▼3.93ms] Passed 4 tests

This is a short check of server-side resources used by Business One ToolKit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.55 ▼6.87
Dashboard /wp-admin3.42 ▲0.1245.29 ▼3.02
Posts /wp-admin/edit.php3.47 ▲0.1248.89 ▲2.61
Add New Post /wp-admin/post-new.php6.00 ▲0.1286.62 ▲0.92
Media Library /wp-admin/upload.php3.35 ▲0.1238.43 ▼6.76
Clients /wp-admin/edit.php?post_type=clients3.3936.02
Add New /wp-admin/post-new.php?post_type=portfolio3.4750.91
Skill /wp-admin/edit.php?post_type=skill3.3937.05
About /wp-admin/edit.php?post_type=about3.3931.64
Add New /wp-admin/post-new.php?post_type=about3.3842.10
Add New /wp-admin/post-new.php?post_type=team3.3841.11
Add New /wp-admin/post-new.php?post_type=clients3.3843.38
Category /wp-admin/edit-tags.php?taxonomy=port_post&post_type=portfolio3.3433.17
Add New /wp-admin/post-new.php?post_type=skill3.3844.39
Services /wp-admin/edit.php?post_type=services3.3936.87

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Business One ToolKit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,013 ▲26713.30 ▼1.222.06 ▼0.2143.37 ▼2.04
Dashboard /wp-admin2,376 ▲1885.05 ▲0.16110.93 ▼6.5840.10 ▼3.65
Posts /wp-admin/edit.php2,262 ▲1732.02 ▲0.0344.02 ▲7.8236.80 ▲4.43
Add New Post /wp-admin/post-new.php1,658 ▲14417.63 ▲0.11678.58 ▲1.1353.79 ▼9.68
Media Library /wp-admin/upload.php1,561 ▲1764.11 ▼0.2896.72 ▼8.1444.33 ▲2.59
Clients /wp-admin/edit.php?post_type=clients1,2231.9632.0332.75
Add New /wp-admin/post-new.php?post_type=portfolio2,4197.85168.9864.83
Skill /wp-admin/edit.php?post_type=skill1,2232.1431.6429.58
About /wp-admin/edit.php?post_type=about1,2201.9932.7129.36
Add New /wp-admin/post-new.php?post_type=about1,5632.5050.9552.55
Add New /wp-admin/post-new.php?post_type=team1,5632.5046.8945.46
Add New /wp-admin/post-new.php?post_type=clients1,5662.4949.4447.33
Category /wp-admin/edit-tags.php?taxonomy=port_post&post_type=portfolio1,4352.1527.0928.02
Add New /wp-admin/post-new.php?post_type=skill1,5632.4946.9148.89
Services /wp-admin/edit.php?post_type=services1,2231.9931.4530.88

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business-one-toolkit/business-one.php:101

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: business, toolkit

business-one-toolkit/business-one.php 85% from 13 tests

The entry point to "Business One ToolKit" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("business-one-toolkit.php" instead of "business-one.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201071

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin