Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/rotem-products-shortcodes/rotem-products-shortcodes.php+65
require(wp-content/plugins/rotem-products-shortcodes/includes/class-rotem-Products-shortcodes.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.69ms] Passed 4 tests
Server-side resources used by Rotem Products Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.48 ▲1.09 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.43 ▼8.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.03 ▼0.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.02 ▼16.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.23 ▼6.05 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Rotem Products Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.31 ▼1.06 | 1.72 ▼0.26 | 40.81 ▼2.49 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼0.07 | 108.99 ▼9.25 | 38.49 ▼4.29 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.03 ▼0.02 | 36.89 ▼2.39 | 32.68 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,535 ▲13 | 23.32 ▲0.42 | 626.42 ▼52.00 | 50.75 ▼8.03 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.04 | 94.56 ▼52.23 | 44.75 ▼16.27 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/rotem-products-shortcodes/public/partials/rotem-products-shortcodes-public-display.php
- > /wp-content/plugins/rotem-products-shortcodes/admin/partials/rotem-products-shortcodes-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in rotem-products-shortcodes/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== rotem-products-shortcodes ===
)
rotem-products-shortcodes/rotem-products-shortcodes.php Passed 13 tests
The main PHP script in "Rotem Products Shortcodes" version 1.0.0 is automatically included on every request by WordPress
80 characters long description:
Add a button to the editor that create a [products] shorcode for Products plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected325 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 137 | 550 | 219 |
JavaScript | 4 | 29 | 65 | 77 |
Markdown | 1 | 8 | 0 | 22 |
CSS | 2 | 3 | 8 | 7 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
products-shortcode-button.png | 1.48KB | 1.59KB | 0.00% |