Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.37ms] Passed 4 tests
An overview of server-side resources used by WP Shortcode Advertising
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.06 ▲2.55 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.27 ▼2.39 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.92 ▲0.41 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.69 ▼3.17 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.91 ▼4.34 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Shortcode Advertising
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.72 ▼0.65 | 1.67 ▲0.02 | 48.31 ▲1.68 |
Dashboard /wp-admin | 2,203 ▲12 | 4.86 ▼0.01 | 98.94 ▼2.44 | 40.99 ▼0.43 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.03 ▼0.02 | 40.51 ▲5.14 | 35.94 ▲1.49 |
Add New Post /wp-admin/post-new.php | 1,514 ▼21 | 17.56 ▼5.70 | 716.47 ▲40.17 | 55.65 ▲2.89 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.23 ▲0.13 | 111.83 ▲4.14 | 48.45 ▲6.82 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-shortcode-advertising/settings/template-profile-options.php
- > /wp-content/plugins/wp-shortcode-advertising/wp-shortcode-advertising.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (/assets/option-page-screenshot.png)
wp-shortcode-advertising/wp-shortcode-advertising.php Passed 13 tests
The principal PHP file in "WP Shortcode Advertising" v. 0.3.1 is loaded by WordPress automatically on each request
60 characters long description:
A plugin that allow you to insert advertising via shortcode.
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 plugin941 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 189 | 789 | 831 |
PO File | 2 | 16 | 18 | 74 |
Markdown | 1 | 8 | 0 | 19 |
JavaScript | 1 | 0 | 5 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.78 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 23 | 46.94% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 2 | 4.08% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 6 | 37.50% |
▷ Class constants | 10 | 62.50% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/advertising.png | 2.69KB | 2.07KB | ▼ 22.86% |
assets/screenshot-1.png | 109.11KB | 25.56KB | ▼ 76.57% |
assets/option-page-screenshot.png | 109.11KB | 25.56KB | ▼ 76.57% |