Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼138.06ms] Passed 4 tests
Analyzing server-side resources used by Beans Visual Hook Guide
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 42.97 ▲19.30 |
Dashboard /wp-admin | 3.06 ▲0.00 | 57.88 ▲7.35 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 61.41 ▲7.64 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 105.84 ▼567.04 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 37.33 ▼0.19 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Beans Visual Hook Guide
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.92 ▲0.33 | 8.87 ▼0.70 | 54.23 ▼4.67 |
Dashboard /wp-admin | 2,964 ▲30 | 5.86 ▼0.12 | 165.52 ▼16.24 | 122.98 ▼11.94 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 74.01 ▲0.03 | 110.03 ▲11.72 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.77 ▲0.05 | 425.28 ▲15.17 | 123.68 ▼2.34 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.01 | 172.50 ▼2.74 | 132.03 ▲3.31 |
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 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/beans-visual-hook-guide/beans-visual-hook-guide.php
- > /wp-content/plugins/beans-visual-hook-guide/src/markup/views/markup.php
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function LearningCurve\\BeansVisualHookGuide\\Asset\\add_action() in wp-content/plugins/beans-visual-hook-guide/src/asset/ajax.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function LearningCurve\\BeansVisualHookGuide\\Admin\\__() in wp-content/plugins/beans-visual-hook-guide/config/admin-bar.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/beans-visual-hook-guide/src/admin/views/notice-error.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function LearningCurve\\BeansVisualHookGuide\\Admin\\add_action() in wp-content/plugins/beans-visual-hook-guide/src/admin/admin-bar.php:16
- > PHP Notice
Undefined variable: type in wp-content/plugins/beans-visual-hook-guide/src/markup/views/markup.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function LearningCurve\\BeansVisualHookGuide\\add_action() in wp-content/plugins/beans-visual-hook-guide/src/plugin.php:14
- > PHP Notice
Undefined variable: type in wp-content/plugins/beans-visual-hook-guide/src/markup/views/markup.php on line 13
- > PHP Notice
Undefined variable: markup_id in wp-content/plugins/beans-visual-hook-guide/src/markup/views/markup.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function LearningCurve\\BeansVisualHookGuide\\Admin\\add_action() in wp-content/plugins/beans-visual-hook-guide/src/admin/notices.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/beans-visual-hook-guide/src/admin/views/notice-warning.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: beans framework, beans, beans html api, development tool, hooks
beans-visual-hook-guide/beans-visual-hook-guide.php Passed 13 tests
"Beans Visual Hook Guide" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
Find Beans Hooks (HTML API created action hooks only at the moment) quickly and easily by seeing
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin765 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 138 | 578 | 428 |
JavaScript | 4 | 64 | 119 | 159 |
CSS | 2 | 14 | 2 | 66 |
XML | 1 | 11 | 7 | 47 |
JSON | 1 | 0 | 0 | 39 |
Markdown | 2 | 18 | 0 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 10 | 47.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 52.38% |
Functions | 29 | |
▷ Named functions | 25 | 86.21% |
▷ Anonymous functions | 4 | 13.79% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin