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.06MB] [CPU: ▼3.83ms] Passed 4 tests
Analyzing server-side resources used by IG Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.19 ▼5.08 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.08 ▲1.55 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 49.83 ▲4.02 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.62 ▼9.88 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.75 ▼1.89 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for IG Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲166 | 13.64 ▼0.74 | 5.96 ▲3.94 | 43.16 ▼5.50 |
Dashboard /wp-admin | 2,216 ▲31 | 5.80 ▼0.08 | 98.68 ▼1.86 | 36.48 ▼6.55 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.02 | 40.29 ▲4.97 | 35.02 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.13 ▼0.12 | 638.82 ▼11.41 | 50.90 ▼5.66 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.30 ▲0.10 | 94.38 ▼5.88 | 42.42 ▲0.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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 no errors were found, this is by no means an exhaustive test
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ig-shortcodes/inc/admin/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ig-shortcodes/inc/shortcodes/free-shortcodes.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (screenshot-1) image required
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ig-shortcodes/ig-shortcodes.php Passed 13 tests
"IG Shortcodes" version 3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
A complete set of WordPress shortcodes to add beautiful and useful elements to your theme.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,371 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 190 | 26 | 1,214 |
Sass | 16 | 51 | 15 | 747 |
SVG | 1 | 0 | 3 | 534 |
JavaScript | 2 | 4 | 25 | 387 |
PHP | 3 | 49 | 92 | 261 |
PO File | 3 | 85 | 141 | 228 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.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
1 PNG file occupies 0.47MB with 0.32MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 481.53KB | 156.21KB | ▼ 67.56% |