84% cbxwpsimpleaccountingvc

Code Review | CBX Accounting Vendors & Clients Addon

WordPress plugin CBX Accounting Vendors & Clients Addon scored84%from 54 tests.

About plugin

  • Plugin page: cbxwpsimpleaccoun...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2018
  • Latest release: Jun 7, 2020
  • Number of updates: 11
  • Update frequency: every 49.4 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /3,542 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by CBX Accounting Vendors & Clients Addon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.29 ▼4.95
Dashboard /wp-admin3.31 ▼0.0447.49 ▼18.01
Posts /wp-admin/edit.php3.36 ▲0.0049.72 ▼3.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.99 ▼12.53
Media Library /wp-admin/upload.php3.23 ▲0.0036.54 ▲2.49

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CBX Accounting Vendors & Clients Addon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.41 ▲0.011.82 ▼0.5238.78 ▼6.76
Dashboard /wp-admin2,195 ▲185.53 ▼0.1585.95 ▼11.9438.55 ▼4.00
Posts /wp-admin/edit.php2,100 ▼32.05 ▲0.0137.56 ▼0.0835.07 ▼0.97
Add New Post /wp-admin/post-new.php1,547 ▲1623.42 ▲0.38683.72 ▲33.2255.78 ▲2.93
Media Library /wp-admin/upload.php1,403 ▲64.16 ▼0.04103.89 ▼2.4245.12 ▲2.80

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/cbxwpsimpleaccountingvc/partials/mustache-template-vc.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: The official readme.txt is a good inspiration

cbxwpsimpleaccountingvc/cbxwpsimpleaccountingvc.php Passed 13 tests

The main PHP file in "CBX Accounting Vendors & Clients Addon" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Vendors & Clients for CBX Accounting & Bookkeeping plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected7,805 lines of code in 143 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1329311,6555,328
PHP95735652,280
CSS2305197

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity60.75
▷ Minimum class complexity1.00
▷ Maximum class complexity171.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods68
▷ Static methods913.24%
▷ Public methods6798.53%
▷ Protected methods11.47%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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 files were detected