Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.61ms] Passed 4 tests
An overview of server-side resources used by Business Card Block - Show your business card on the web.
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.63 ▼5.66 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.72 ▼4.44 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.73 ▼1.99 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 96.73 ▲1.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.97 ▲3.91 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Business Card Block - Show your business card on the web.
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲85 | 13.83 ▼0.55 | 9.26 ▲7.05 | 42.23 ▼6.93 |
Dashboard /wp-admin | 2,200 ▲12 | 5.85 ▲0.96 | 114.15 ▼0.73 | 41.25 ▼6.93 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.01 | 40.56 ▲3.58 | 35.36 ▼1.73 |
Add New Post /wp-admin/post-new.php | 6,424 ▲4,879 | 28.85 ▲5.60 | 880.92 ▲230.05 | 37.12 ▼24.05 |
Media Library /wp-admin/upload.php | 1,379 ▼9 | 4.19 ▼0.01 | 96.08 ▼15.18 | 43.16 ▼1.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant BCB_PLUGIN_VERSION - assumed 'BCB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/business-card-block/dist/script.asset.php on line 3
- > PHP Warning
Use of undefined constant BCB_PLUGIN_VERSION - assumed 'BCB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/business-card-block/dist/editor.asset.php on line 3
- > PHP Warning
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Requires at least: Invalid version format
business-card-block/index.php 85% from 13 tests
"Business Card Block - Show your business card on the web." version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("business-card-block.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected352 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 189 |
PO File | 1 | 50 | 94 | 118 |
PHP | 3 | 11 | 13 | 40 |
CSS | 3 | 0 | 6 | 3 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG images were found in this plugin