79% business-model-canvas

Code Review | Business Canvas Model

WordPress plugin Business Canvas Model scored79%from 54 tests.

About plugin

  • Plugin page: business-model-ca...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-5.2
  • WordPress version: 6.3.1
  • First release: Jun 24, 2019
  • Latest release: Jun 25, 2019
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: zaheer01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /814 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.42ms] Passed 4 tests

An overview of server-side resources used by Business Canvas Model
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1247.78 ▲3.34
Dashboard /wp-admin3.41 ▲0.1150.18 ▼2.50
Posts /wp-admin/edit.php3.53 ▲0.1748.94 ▲3.27
Add New Post /wp-admin/post-new.php5.99 ▲0.1184.25 ▼17.79
Media Library /wp-admin/upload.php3.34 ▲0.1139.32 ▲5.22

Server storage [IO: ▲1.58MB] [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: 55 new files
Database: 1 new table, 6 new options
New tables
wp_bmc_canvas_table
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Business Canvas Model
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15213.50 ▼0.7710.11 ▲7.9543.74 ▼2.17
Dashboard /wp-admin2,207 ▲335.64 ▲0.0389.15 ▼18.2941.75 ▼5.04
Posts /wp-admin/edit.php2,112 ▲152.09 ▲0.1239.84 ▲0.3236.24 ▼1.31
Add New Post /wp-admin/post-new.php1,538 ▲1022.99 ▼0.01607.06 ▼77.2762.54 ▲4.89
Media Library /wp-admin/upload.php1,412 ▲124.10 ▼0.11102.10 ▼4.1244.99 ▼0.08

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/business-model-canvas/business-model-canvas.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business-model-canvas/bmc-dashboard/bmc-update-fields.php:3

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: business plan, business-canvas-model

business-model-canvas/business-model-canvas.php Passed 13 tests

The primary PHP file in "Business Canvas Model" version 1.0.0 is used by WordPress to initiate all plugin functionality
129 characters long description:
Plug and Play Plugin Development. An admin can create different business model canvases to define the whole idea of his business.

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
There were no executable files found in this plugin9,590 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
CSS6110562,801
SVG1002,671
Sass1434341,768
LESS1434441,758
PHP815224494
JavaScript4562398

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
There were not PNG files found in your plugin