94% connections-toolbar

Code Review | Connections Business Directory Toolbar

WordPress plugin Connections Business Directory Toolbar scored 94% from 54 tests.

About plugin

  • Plugin page: connections-toolbar
  • Plugin version: 1.2
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9
  • WordPress version: 5.9.2
  • First release: Sep 16, 2013
  • Latest release: Feb 3, 2022
  • Number of updates: 31
  • Update frequency: every 98.8 days
  • Top authors: shazahm1@hotmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 9,374 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼297.06ms] Passed 4 tests

A check of server-side resources used by Connections Business Directory Toolbar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0152.31 ▲1.29
Dashboard /wp-admin3.41 ▲0.0133.53 ▼3.20
Posts /wp-admin/edit.php3.64 ▲0.0137.28 ▲0.45
Add New Post /wp-admin/post-new.php6.89 ▼0.0897.63 ▼1,178.74
Media Library /wp-admin/upload.php3.30 ▼0.0024.79 ▼6.74

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Connections Business Directory Toolbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.74 ▲0.106.46 ▼0.122.47 ▼0.00
Dashboard /wp-admin2,888 ▲276.15 ▼0.06118.57 ▼14.60153.10 ▼6.98
Posts /wp-admin/edit.php2,694 ▼03.23 ▼0.0160.15 ▼3.07137.68 ▼5.54
Add New Post /wp-admin/post-new.php1,752 ▼2120.96 ▼0.36415.90 ▼25.92153.43 ▼2.78
Media Library /wp-admin/upload.php1,698 ▼05.50 ▲0.04145.41 ▲5.53184.49 ▼5.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix 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/connections-toolbar/connections-toolbar.php:961

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: You are using too many tags: 54 tag instead of maximum 10
The official readme.txt is a good inspiration

connections-toolbar/connections-toolbar.php Passed 13 tests

"Connections Business Directory Toolbar" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
123 characters long description:
An extension for the Connections Business Directory plugin that adds useful links and resources to the WordPress Admin Bar.

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
Good job! No executable or dangerous file extensions detected725 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP183154725

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ 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 methods685.71%
▷ Public methods457.14%
▷ Protected methods00.00%
▷ Private methods342.86%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin