Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.28ms] Passed 4 tests
This is a short check of server-side resources used by Semantic Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 36.19 ▼5.37 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.47 ▼2.12 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 47.96 ▲1.88 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 84.25 ▼14.28 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 33.89 ▲0.66 |
Semantic Shortcode /wp-admin/edit.php?page=semantic-shortcode | 3.40 | 36.10 |
Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Semantic Shortcode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.81 ▼0.57 | 10.66 ▲8.85 | 51.75 ▲8.11 |
Dashboard /wp-admin | 2,212 ▲21 | 5.83 ▲0.95 | 96.00 ▼7.94 | 40.54 ▲1.52 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.02 | 39.21 ▲4.05 | 34.12 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.22 ▲2.19 | 652.14 ▼7.58 | 52.39 ▼2.62 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.20 ▼0.01 | 95.66 ▼3.18 | 46.42 ▲3.99 |
Semantic Shortcode /wp-admin/edit.php?page=semantic-shortcode | 2,483 | 2.58 | 51.32 | 86.30 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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
Please fix the following items
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/semantic-shortcode/inc/element2/reveal.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/semantic-shortcode/inc/element1/button.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/semantic-shortcode/inc/element1/header.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/semantic-shortcode/inc/element1/divider.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/semantic-shortcode/inc/collections/grid.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/semantic-shortcode/inc/element2/image.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/semantic-shortcode/inc/modules/transition.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/semantic-shortcode/inc/modules/accordioan.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/semantic-shortcode/inc/element1/button.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/semantic-shortcode/inc/element1/icon.php:19
- > 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 83% from 29 tests
readme.txt 75% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
- Tags: Please delete some tags, you are using 20 tag instead of maximum 10
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== semantic-shortcode ===
) - Screenshots: Add images for these screenshots: #1 (This screen backend shortcode document to screenshot-1.png), #2 (This screen backend editor screen to screenshot-2.png)
semantic-shortcode/semantic-shortcode.php 92% from 13 tests
The main PHP file in "Semantic Shortcode" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,557 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 6 | 11 | 1,462 |
PHP | 18 | 36 | 372 | 1,078 |
SVG | 2 | 0 | 0 | 1,015 |
CSS | 2 | 0 | 10 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.47 |
▷ 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 | 1 | 100.00% |
Methods | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 20.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.10MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.34KB | 1.24KB | ▼ 7.38% |
screenshot-1.png | 34.97KB | 35.67KB | 0.00% |
screenshot-2.png | 37.40KB | 37.76KB | 0.00% |
css/themes/default/assets/images/flags.png | 27.46KB | 29.21KB | 0.00% |