Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.28ms] Passed 4 tests
A check of server-side resources used by WordPress Shortcode Library from One Dollar Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.83 ▼0.25 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.14 ▼5.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 39.79 ▼2.55 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.14 ▼4.48 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.96 ▲2.65 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Shortcode Library from One Dollar Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.66 ▼0.69 | 1.73 ▼0.08 | 45.40 ▼1.78 |
Dashboard /wp-admin | 2,209 ▲21 | 4.87 ▲0.01 | 105.79 ▼4.36 | 42.49 ▲0.25 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▲0.03 | 38.93 ▲3.15 | 34.76 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.51 ▲5.77 | 653.11 ▼29.60 | 58.35 ▲3.86 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.03 | 103.15 ▲6.53 | 40.75 ▼5.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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)
Even though no errors were found, 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
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Launch\\add_action() in wp-content/plugins/wordpress-shortcode-library/lib/src/Launch/ShortcodeLauncher.php:10
- > PHP Fatal error
Uncaught Error: Class 'FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Shortcodes\\BaseShortcode' not found in wp-content/plugins/wordpress-shortcode-library/lib/src/Shortcodes/CloudflareStream.php:5
- > PHP Fatal error
Uncaught Error: Class 'FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Shortcodes\\HtmlElement' not found in wp-content/plugins/wordpress-shortcode-library/lib/src/Shortcodes/NoShortcode.php:5
- > PHP Fatal error
Uncaught Error: Class 'FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Shortcodes\\BaseShortcode' not found in wp-content/plugins/wordpress-shortcode-library/lib/src/Shortcodes/HtmlElement.php:5
- > PHP Fatal error
Uncaught Error: Class 'FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Shortcodes\\HtmlElement' not found in wp-content/plugins/wordpress-shortcode-library/lib/src/Shortcodes/HtmlDiv.php:5
- > PHP Fatal error
Uncaught Error: Class 'FernleafSystems\\Wordpress\\Plugin\\ShortcodeLibrary\\Shortcodes\\HtmlElement' not found in wp-content/plugins/wordpress-shortcode-library/lib/src/Shortcodes/SiteName.php:5
- > 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 96% from 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
4 plugin tags: cloudflare stream, wordpress, shortcodes, library
wordpress-shortcode-library/plugin.php 92% from 13 tests
This is the main PHP file of "WordPress Shortcode Library from One Dollar Plugin" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wordpress-shortcode-library.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin575 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 127 | 210 | 541 |
JSON | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 3 | 6.82% |
▷ Public methods | 26 | 59.09% |
▷ Protected methods | 15 | 34.09% |
▷ Private methods | 3 | 6.82% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin