Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.17ms] Passed 4 tests
This is a short check of server-side resources used by Simple Code Insert Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.90 ▼3.20 |
Dashboard /wp-admin | 3.36 ▲0.01 | 46.06 ▼13.89 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.78 ▲2.40 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 94.35 ▼8.58 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.91 ▲1.00 |
SCI Shortcode /wp-admin/options-general.php?page=simple-code-insert-shortcode | 3.25 | 37.86 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_scistbl |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Code Insert Shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.56 ▼0.81 | 1.89 ▲0.23 | 43.31 ▲0.96 |
Dashboard /wp-admin | 2,217 ▲32 | 5.97 ▲0.08 | 98.41 ▼3.12 | 39.19 ▼4.24 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 2.04 ▲0.05 | 40.79 ▼0.20 | 35.92 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,521 ▼21 | 23.15 ▲5.10 | 639.24 ▼5.05 | 55.08 ▼0.10 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.18 ▼0.02 | 100.97 ▼2.10 | 43.37 ▲0.81 |
SCI Shortcode /wp-admin/options-general.php?page=simple-code-insert-shortcode | 889 | 2.07 | 25.16 | 30.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_scistbl
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% 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 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-code-insert-shortcode/simplecodeinsertshortcode.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-code-insert-shortcode/class.scis-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'Scis_Admin' not found in wp-content/plugins/simple-code-insert-shortcode/views/dashboard.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: simple code insert, simple code embed, simple code insert shortcode
simple-code-insert-shortcode/simplecodeinsertshortcode.php 85% from 13 tests
The entry point to "Simple Code Insert Shortcode" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 264 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("simple-code-insert-shortcode.php" instead of "simplecodeinsertshortcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin694 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 23 | 0 | 329 |
PHP | 6 | 98 | 25 | 302 |
JavaScript | 1 | 24 | 0 | 63 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 18 | 100.00% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_inc/images/scis-logo.png | 5.16KB | 2.13KB | ▼ 58.65% |
_inc/images/simple-code-insert-plugin-screenshot.png | 56.14KB | 24.92KB | ▼ 55.61% |