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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.42ms] Passed 4 tests
Server-side resources used by BibleGateway Links Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.91 ▼0.38 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.35 ▼6.97 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.33 ▼0.30 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 93.07 ▼14.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.50 ▲1.85 |
BibleGateway Links Shortcode /wp-admin/options-general.php?page=bgbible | 3.19 | 30.64 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
BibleGateway Links Shortcode: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.21 ▼1.18 | 1.66 ▼0.21 | 41.51 ▼3.33 |
Dashboard /wp-admin | 2,207 ▲19 | 5.79 ▲0.89 | 102.11 ▼8.56 | 40.33 ▼8.42 |
Posts /wp-admin/edit.php | 2,103 ▲17 | 2.07 ▲0.05 | 41.13 ▲3.76 | 35.12 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.42 ▲0.39 | 662.47 ▲2.04 | 61.97 ▲8.08 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.21 ▼0.00 | 96.75 ▲2.35 | 42.20 ▲0.03 |
BibleGateway Links Shortcode /wp-admin/options-general.php?page=bgbible | 833 | 2.06 | 24.63 | 24.66 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=bgbible
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=bgbible
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/biblegateway-links-shortcode/biblegateway-search-shortcode.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (1) Highlight reference, 2) Optionally enter alternate text for display, 3) OK!), #2 (1) Place cursor where you want the reference, 2) Enter reference, 3) Optionally enter alternate text for display, 3) OK!)
- Plugin Name: You should set the name of your plugin on the first line (
=== BibleGateway Links Shortcode===
)
biblegateway-links-shortcode/biblegateway-search-shortcode.php 85% from 13 tests
Analyzing the main PHP file in "BibleGateway Links Shortcode" version 0.1.7
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("biblegateway-links-shortcode.php" instead of "biblegateway-search-shortcode.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)
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 plugin257 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 23 | 200 |
JavaScript | 2 | 13 | 15 | 57 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 15 | |
▷ Static methods | 5 | 33.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 95.91KB | 34.99KB | ▼ 63.52% |
bg.png | 1.83KB | 1.21KB | ▼ 33.53% |
screenshot-2.png | 78.58KB | 28.89KB | ▼ 63.24% |