Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.33ms] Passed 4 tests
Analyzing server-side resources used by BBA Mastro Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.53 ▼4.01 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.20 ▲0.05 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.22 ▼5.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.72 ▼2.98 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.49 ▼1.07 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BBA Mastro Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲34 | 14.34 ▲0.00 | 1.81 ▼0.33 | 40.66 ▼2.42 |
Dashboard /wp-admin | 2,197 ▲20 | 5.62 ▼0.05 | 108.24 ▲17.73 | 50.90 ▲12.01 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.96 ▼0.00 | 39.23 ▼1.52 | 33.75 ▼6.00 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.29 ▲0.08 | 611.70 ▼26.84 | 49.88 ▼5.47 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.19 ▲0.01 | 95.94 ▼0.11 | 42.28 ▲2.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bba-mastro/includes/bba-api/bbamastro-config.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bba-mastro/admin/templates/wc-settings/bba_admin_product_categories.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bba-mastro/admin/templates/wc-settings/bba_admin_custom_order_fields.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
bba-mastro/bbamastro.php 92% from 13 tests
The primary PHP file in "BBA Mastro Plugin" version 2.4.12 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("bba-mastro.php" instead of "bbamastro.php")
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
Everything looks great! No dangerous files found in this plugin1,846 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 313 | 56 | 1,686 |
JavaScript | 2 | 16 | 1 | 126 |
CSS | 1 | 4 | 0 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 111 | |
▷ Static methods | 38 | 34.23% |
▷ Public methods | 84 | 75.68% |
▷ Protected methods | 2 | 1.80% |
▷ Private methods | 25 | 22.52% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin