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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼12.15ms] Passed 4 tests
This is a short check of server-side resources used by Buythis Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.97 ▲3.67 |
Dashboard /wp-admin | 3.39 ▲0.04 | 46.40 ▼7.95 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 42.61 ▼17.88 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.07 | 79.60 ▼23.86 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.57 ▲1.11 |
Buythis Shortcode /wp-admin/options-general.php?page=buythis_shortcode | 3.25 | 30.33 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Buythis Shortcode: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.36 ▲0.14 | 1.73 ▲0.17 | 43.58 ▲3.43 |
Dashboard /wp-admin | 2,196 ▲15 | 5.62 ▼0.09 | 92.98 ▼8.25 | 41.98 ▲1.08 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.00 ▲0.01 | 34.71 ▼4.61 | 32.14 ▼5.45 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.11 ▼0.12 | 759.66 ▲79.68 | 60.63 ▲3.53 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.25 ▲0.08 | 92.86 ▼4.35 | 42.20 ▼3.13 |
Buythis Shortcode /wp-admin/options-general.php?page=buythis_shortcode | 780 | 2.00 | 22.89 | 24.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=buythis_shortcode
- > Notice in wp-content/plugins/buythis-shortcode/settings.php+40
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buythis-shortcode/settings.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/buythis-shortcode/buythis-shortcode.php:438
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (No screenshots at present.)
buythis-shortcode/buythis-shortcode.php Passed 13 tests
The main PHP script in "Buythis Shortcode" version 3.1 is automatically included on every request by WordPress
82 characters long description:
This plugin provides a shortcode to interface between Wordpress and Buythis.co.za.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected392 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 66 | 32 | 392 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 20 | 90.91% |
▷ Anonymous functions | 2 | 9.09% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin