Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.23ms] Passed 4 tests
This is a short check of server-side resources used by Business Card
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 40.01 ▼4.58 |
Dashboard /wp-admin | 3.37 ▲0.03 | 49.78 ▼16.49 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 55.28 ▲7.47 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 97.00 ▼15.27 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 37.82 ▼0.56 |
All cards /wp-admin/admin.php?page=es-bcard-options | 3.35 | 37.10 |
Categories /wp-admin/admin.php?page=es-bcard-category | 3.27 | 29.40 |
Server storage [IO: ▲2.65MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_es_bcard |
wp_es_category |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Business Card
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲224 | 16.56 ▲2.21 | 12.59 ▲10.88 | 39.03 ▼6.21 |
Dashboard /wp-admin | 2,233 ▲59 | 6.30 ▲0.69 | 97.11 ▲9.46 | 68.55 ▲23.70 |
Posts /wp-admin/edit.php | 2,213 ▲110 | 3.25 ▲1.26 | 45.49 ▲5.27 | 38.58 ▲3.60 |
Add New Post /wp-admin/post-new.php | 1,713 ▲177 | 24.79 ▲1.82 | 678.16 ▲19.53 | 47.37 ▼4.41 |
Media Library /wp-admin/upload.php | 1,504 ▲104 | 5.75 ▲1.53 | 102.46 ▼10.41 | 85.19 ▲33.59 |
All cards /wp-admin/admin.php?page=es-bcard-options | 1,030 | 3.04 | 38.07 | 37.80 |
Categories /wp-admin/admin.php?page=es-bcard-category | 1,013 | 3.03 | 31.71 | 30.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=es-bcard-category
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=es-bcard-options
- > Notice in wp-content/plugins/business-card-by-esterox-100/admin_view.php+213
Undefined variable: html
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/business-card-by-esterox-100/edit_business_card_admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/business-card-by-esterox-100/business_card.php:11
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/business-card-by-esterox-100/admin_view.php:182
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/business-card-by-esterox-100/admin_category_view.php:40
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/business-card-by-esterox-100/admin_category_view.php on line 40
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/business-card-by-esterox-100/admin_view.php on line 182
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/business-card-by-esterox-100/business_card_view.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: ""
business-card-by-esterox-100/business_card.php 92% from 13 tests
"Business Card" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("business-card-by-esterox-100.php" instead of "business_card.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
Success! There were no dangerous files found in this plugin19,965 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 3,369 | 7,589 | 13,836 |
CSS | 3 | 372 | 132 | 5,111 |
PHP | 6 | 151 | 40 | 1,018 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 1.08MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 260.69KB | 50.06KB | ▼ 80.80% |
img/bs_icon.png | 1.11KB | 1.30KB | 0.00% |
img/business_1.png | 68.83KB | 29.43KB | ▼ 57.25% |
img/bs_icon1.png | 0.49KB | 0.67KB | 0.00% |
img/AlignTextLeft.png | 2.83KB | 0.15KB | ▼ 94.66% |