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.02MB] [CPU: ▼6.14ms] Passed 4 tests
Server-side resources used by Simple Text Shortcodes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 44.27 ▲4.95 |
Dashboard /wp-admin | 3.34 ▼0.01 | 49.96 ▼9.81 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.13 ▼3.47 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.10 ▼12.21 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 35.98 ▲0.92 |
Add New /wp-admin/post-new.php?post_type=alp_shortcode | 3.36 | 47.56 |
Shortcodes /wp-admin/edit.php?post_type=alp_shortcode | 3.31 | 38.06 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Text Shortcodes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.25 ▼0.96 | 1.92 ▲0.12 | 40.71 ▲2.90 |
Dashboard /wp-admin | 2,233 ▲48 | 4.81 ▼1.07 | 103.89 ▲2.72 | 41.52 ▼5.49 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.04 ▼0.00 | 35.59 ▼4.92 | 33.31 ▼4.79 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.17 ▲0.15 | 650.19 ▼18.94 | 55.95 ▼2.81 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.26 ▲0.07 | 100.55 ▲0.79 | 43.09 ▼2.28 |
Add New /wp-admin/post-new.php?post_type=alp_shortcode | 2,156 | 7.60 | 176.81 | 67.64 |
Shortcodes /wp-admin/edit.php?post_type=alp_shortcode | 1,088 | 1.94 | 30.70 | 32.36 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× 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/simple-text-shortcodes/simple-text-shortcodes.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== simple-text-shortcodes ===
)
simple-text-shortcodes/simple-text-shortcodes.php Passed 13 tests
The primary PHP file in "Simple Text Shortcodes" version 0.4 is used by WordPress to initiate all plugin functionality
55 characters long description:
Simple plugin for creating and managing text shortcodes
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
Success! There were no dangerous files found in this plugin74 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 10 | 66 |
Markdown | 1 | 7 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 2 | 40.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
No PNG images were found in this plugin