Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.57ms] Passed 4 tests
An overview of server-side resources used by Generate Shortcode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.43 ▼5.69 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.25 ▼14.67 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.86 ▲5.04 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.86 ▼13.33 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.62 ▲3.40 |
All Shortcodes /wp-admin/edit.php?post_type=generate_shortcode | 3.31 | 34.28 |
Add New /wp-admin/post-new.php?post_type=generate_shortcode | 3.36 | 44.63 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Generate Shortcode: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.21 ▼1.02 | 1.62 ▼0.17 | 44.17 ▲0.28 |
Dashboard /wp-admin | 2,230 ▲45 | 5.86 ▲0.99 | 96.06 ▼3.45 | 39.12 ▼2.53 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.00 ▼0.01 | 40.30 ▲2.96 | 33.94 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,556 ▲24 | 23.38 ▼0.18 | 678.03 ▲61.16 | 55.22 ▼6.20 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.32 ▲0.07 | 103.89 ▲5.75 | 44.90 ▲1.88 |
All Shortcodes /wp-admin/edit.php?post_type=generate_shortcode | 1,063 | 2.00 | 31.98 | 26.90 |
Add New /wp-admin/post-new.php?post_type=generate_shortcode | 2,191 | 7.61 | 166.04 | 61.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/generate-shortcode/generate-shortcode.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: make shortcode, custom shortcode, adsense, google adsense, shortcodes...
generate-shortcode/generate-shortcode.php Passed 13 tests
The principal PHP file in "Generate Shortcode" v. 1.0.0 is loaded by WordPress automatically on each request
127 characters long description:
Create and Generate your Shortcodes easily, create google adsense shortcodes, unlimited shortcodes, no options and easy to use.
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
Good job! No executable or dangerous file extensions detected108 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 22 | 108 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin