Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.06ms] Passed 4 tests
An overview of server-side resources used by Custom HTML & JS Shortcodes by AnWP.pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.80 ▲3.77 |
Dashboard /wp-admin | 3.36 ▲0.05 | 46.64 ▼0.23 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.54 ▼0.34 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 82.68 ▼20.19 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.78 ▲0.53 |
All Shortcodes /wp-admin/edit.php?post_type=anwp_code | 3.32 | 35.17 |
Add New Shortcode /wp-admin/post-new.php?post_type=anwp_code | 3.32 | 39.28 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Custom HTML & JS Shortcodes by AnWP.pro: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.26 ▼1.49 | 1.73 ▲0.04 | 43.48 ▼0.87 |
Dashboard /wp-admin | 2,233 ▲45 | 4.88 ▼0.02 | 112.11 ▲8.91 | 38.54 ▼2.62 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▲0.01 | 40.29 ▼0.29 | 34.97 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.27 ▲5.06 | 676.10 ▲70.82 | 63.10 ▼8.61 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.19 ▼0.01 | 100.51 ▲6.85 | 42.01 ▲0.45 |
All Shortcodes /wp-admin/edit.php?post_type=anwp_code | 1,088 | 1.95 | 30.73 | 28.99 |
Add New Shortcode /wp-admin/post-new.php?post_type=anwp_code | 1,606 | 5.00 | 107.47 | 62.67 |
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 does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 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 Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
9 plugin tags: short code, snippets, custom js, shortcodes, embed js...
custom-html-js-shortcodes-by-anwppro/anwp-custom-html-js.php 85% from 13 tests
"Custom HTML & JS Shortcodes by AnWP.pro" version 0.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("custom-html-js-shortcodes-by-anwppro.php" instead of "anwp-custom-html-js.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin703 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 180 | 540 | 493 |
PO File | 2 | 53 | 90 | 167 |
Sass | 1 | 6 | 3 | 17 |
CSS | 1 | 5 | 1 | 15 |
JSON | 1 | 0 | 0 | 11 |
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.42 |
Average class complexity | 24.67 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 42 | |
▷ Static methods | 5 | 11.90% |
▷ Public methods | 40 | 95.24% |
▷ Protected methods | 1 | 2.38% |
▷ Private methods | 1 | 2.38% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected