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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 52.31 ▲1.29 |
Dashboard /wp-admin | 3.41 ▲0.01 | 33.53 ▼3.20 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 37.28 ▲0.45 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 97.63 ▼1,178.74 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 24.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.74 ▲0.10 | 6.46 ▼0.12 | 2.47 ▼0.00 |
Dashboard /wp-admin | 2,888 ▲27 | 6.15 ▼0.06 | 118.57 ▼14.60 | 153.10 ▼6.98 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.23 ▼0.01 | 60.15 ▼3.07 | 137.68 ▼5.54 |
Add New Post /wp-admin/post-new.php | 1,752 ▼21 | 20.96 ▼0.36 | 415.90 ▼25.92 | 153.43 ▼2.78 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.50 ▲0.04 | 145.41 ▲5.53 | 184.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 83 | 154 | 725 |
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 code | 0.10 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 6 | 85.71% |
▷ Public methods | 4 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 42.86% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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