Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼17.54ms] Passed 4 tests
Server-side resources used by Be Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.14 | 48.62 ▲0.39 |
Dashboard /wp-admin | 3.75 ▲0.19 | 51.07 ▼1.69 |
Posts /wp-admin/edit.php | 3.80 ▲0.12 | 52.21 ▼18.41 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.13 | 98.51 ▼50.12 |
Media Library /wp-admin/upload.php | 3.61 ▲0.12 | 39.33 ▲0.07 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Be Shortcodes: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,079 ▲318 | 14.38 ▲0.23 | 2.02 ▲0.44 | 46.96 ▲4.02 |
Dashboard /wp-admin | 2,461 ▲287 | 5.70 ▲0.02 | 93.11 ▲2.23 | 40.41 ▼6.35 |
Posts /wp-admin/edit.php | 2,366 ▲263 | 2.05 ▲0.05 | 45.32 ▲2.15 | 39.99 ▼17.57 |
Add New Post /wp-admin/post-new.php | 1,806 ▲261 | 23.59 ▲0.45 | 647.64 ▼34.78 | 56.13 ▲2.75 |
Media Library /wp-admin/upload.php | 1,660 ▲260 | 4.27 ▲0.05 | 97.76 ▼6.91 | 43.55 ▼0.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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)
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 fix the following items
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/be-shortcodes/inc/functions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/tab-group.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/animation.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/button.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/clear.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/icon.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/spacing.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/dropcap.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/be-shortcodes/inc/button.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/be-shortcodes/inc/shortcodes/toggle.php:22
- > 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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: buttons, tabs, spacing, progressbar, highlight...
be-shortcodes/be-shortcodes.php Passed 13 tests
The main PHP script in "Be Shortcodes" version 1.0.0 is automatically included on every request by WordPress
54 characters long description:
A lightweight shortcodes plugin created by Beautimour.
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 plugin3,429 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 16 | 124 | 124 | 526 |
JavaScript | 8 | 88 | 20 | 228 |
CSS | 3 | 2 | 10 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
There are no PNG files in this plugin