Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/brozzme-switch-duplicate/brozzme_switch_duplicate.php+96
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.03MB] [CPU: ▼14.74ms] Passed 4 tests
This is a short check of server-side resources used by Brozzme Switch and Duplicate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.49 ▼2.74 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.42 ▼22.29 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 49.74 ▼3.84 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.30 ▼30.09 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.60 ▲0.78 |
Switcher & Duplicate /wp-admin/admin.php?page=brozzme-switch-duplicate-settings | 3.24 | 32.36 |
Brozzme /wp-admin/admin.php?page=brozzme-plugins | 3.09 | 32.92 |
Server storage [IO: ▲0.07MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options |
---|
bsd_settings |
bsd_duplicate_settings |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
bsd_switcher_settings |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Brozzme Switch and Duplicate
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.68 ▼0.76 | 5.46 ▲3.48 | 40.81 ▼2.35 |
Dashboard /wp-admin | 2,232 ▲44 | 4.86 ▼0.04 | 104.19 ▼1.20 | 40.19 ▼0.20 |
Posts /wp-admin/edit.php | 2,193 ▲104 | 2.07 ▲0.04 | 37.42 ▼4.13 | 33.54 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,555 ▲36 | 23.24 ▲0.26 | 630.01 ▼24.27 | 51.32 ▼9.90 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.18 ▼0.05 | 100.59 ▼4.73 | 47.66 ▲3.72 |
Switcher & Duplicate /wp-admin/admin.php?page=brozzme-switch-duplicate-settings | 898 | 1.67 | 25.41 | 29.72 |
Brozzme /wp-admin/admin.php?page=brozzme-plugins | 1,122 | 2.03 | 25.21 | 31.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- bsd_settings
- db_upgraded
- bsd_duplicate_settings
- bsd_switcher_settings
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=brozzme-plugins
- > Notice in wp-content/plugins/brozzme-switch-duplicate/brozzme_switch_duplicate.php+114
Undefined property: brozzme_switch_duplicate::$plugin_txt_domain
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 issues were found
Optimizations
Plugin configuration 96% from 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
9 plugin tags: switcher, duplicate, post-type, cpt, clone...
brozzme-switch-duplicate/brozzme_switch_duplicate.php 92% from 13 tests
The main file in "Brozzme Switch and Duplicate" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("brozzme-switch-duplicate.php" instead of "brozzme_switch_duplicate.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 plugin1,047 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 314 | 353 | 1,014 |
JavaScript | 1 | 21 | 9 | 33 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 25.80 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 1 | 1.61% |
▷ Public methods | 58 | 93.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.45% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.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 files were detected