Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▲0.03ms] Passed 4 tests
An overview of server-side resources used by WP Foundation Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 38.87 ▼0.14 |
Dashboard /wp-admin | 3.77 ▲0.42 | 46.16 ▼11.49 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 49.54 ▲0.57 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 102.64 ▲16.68 |
Media Library /wp-admin/upload.php | 3.63 ▲0.39 | 43.66 ▲11.19 |
Server storage [IO: ▲1.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 98 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Foundation Shortcodes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲228 | 13.59 ▼1.09 | 7.97 ▲6.03 | 38.58 ▼11.88 |
Dashboard /wp-admin | 2,257 ▲69 | 5.85 ▼0.06 | 109.09 ▲6.54 | 76.40 ▲31.22 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.02 ▲0.02 | 39.25 ▼3.65 | 35.77 ▼6.23 |
Add New Post /wp-admin/post-new.php | 1,576 ▲34 | 23.41 ▲5.27 | 628.34 ▼3.93 | 49.91 ▼3.57 |
Media Library /wp-admin/upload.php | 1,436 ▲45 | 4.26 ▲0.04 | 111.45 ▲0.57 | 43.92 ▼4.25 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-foundation-shortcodes/wp-foundation-shortcodes-admin.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/wp-foundation-shortcodes/includes/content.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/wp-foundation-shortcodes/includes/post-lightbox-content.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/wp-foundation-shortcodes/includes/post-list-content.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% 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
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-foundation-shortcodes ===
)
wp-foundation-shortcodes/wp-foundation-shortcodes.php 77% from 13 tests
The primary PHP file in "WP Foundation Shortcodes" version 0.8.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages/")
- Description: Please keep the plugin description shorter than 140 characters (currently 247 characters long)
- Domain Path: The domain path must begin with a forward slash character ("/languages/")
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 plugin5,691 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 328 | 158 | 2,129 |
JavaScript | 42 | 130 | 96 | 2,114 |
Sass | 22 | 387 | 1,225 | 1,078 |
PO File | 3 | 96 | 123 | 292 |
CSS | 2 | 0 | 4 | 43 |
Markdown | 1 | 10 | 0 | 19 |
JSON | 1 | 0 | 0 | 8 |
Ruby | 1 | 5 | 13 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 57.40 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 248.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 80 | |
▷ Static methods | 67 | 83.75% |
▷ Public methods | 80 | 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 | 8 | |
▷ Global constants | 8 | 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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/paypal_donate_button217x50.png | 15.20KB | 5.70KB | ▼ 62.50% |
images/stars.png | 1.13KB | 0.65KB | ▼ 42.24% |
images/icon-20x20.png | 3.13KB | 0.61KB | ▼ 80.44% |