Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.53ms] Passed 4 tests
A check of server-side resources used by Insert PHP Code Snippet
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.52 ▼0.24 |
Dashboard /wp-admin | 3.42 ▲0.11 | 46.63 ▼3.02 |
Posts /wp-admin/edit.php | 3.54 ▲0.17 | 47.19 ▼0.26 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 83.36 ▼6.59 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 44.03 ▲7.65 |
About /wp-admin/admin.php?page=insert-php-code-snippet-about | 3.35 | 34.01 |
Settings /wp-admin/admin.php?page=insert-php-code-snippet-settings | 3.36 | 33.14 |
PHPCode Snippets /wp-admin/admin.php?page=insert-php-code-snippet-manage | 3.40 | 32.49 |
Suggest a Feature /wp-admin/admin.php?page=insert-php-code-snippet-suggest-features | 3.36 | 32.52 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: 1 new table, 17 new options
New tables |
---|
wp_xyz_ips_short_code |
New WordPress options |
---|
can_compress_scripts |
xyz_ips_installed_date |
widget_theysaidso_widget |
xyz_ips_auto_insert |
widget_recent-posts |
db_upgraded |
xyz_ips_exception_email |
xyz_ips_limit |
xyz_ips_auto_exception |
xyz_ips_credit_dismiss |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Insert PHP Code Snippet
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.17 ▼0.44 | 1.72 ▲0.11 | 42.95 ▼2.47 |
Dashboard /wp-admin | 2,230 ▲53 | 5.58 ▼0.08 | 91.97 ▼5.75 | 76.41 ▲32.99 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.00 ▲0.03 | 35.07 ▼0.39 | 34.72 ▲2.69 |
Add New Post /wp-admin/post-new.php | 1,711 ▲185 | 22.23 ▼0.86 | 736.30 ▲52.70 | 65.30 ▲1.60 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.22 ▲0.11 | 101.34 ▼11.85 | 64.22 ▲18.28 |
About /wp-admin/admin.php?page=insert-php-code-snippet-about | 1,521 | 1.67 | 23.58 | 52.10 |
Settings /wp-admin/admin.php?page=insert-php-code-snippet-settings | 1,336 | 1.74 | 24.66 | 34.54 |
PHPCode Snippets /wp-admin/admin.php?page=insert-php-code-snippet-manage | 1,222 | 1.70 | 24.91 | 33.31 |
Suggest a Feature /wp-admin/admin.php?page=insert-php-code-snippet-suggest-features | 1,123 | 1.70 | 24.84 | 30.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 11 options in the database
- theysaidso_admin_options
- can_compress_scripts
- xyz_credit_link
- widget_recent-posts
- widget_xyz_insert_php_widget
- xyz_ips_auto_insert
- db_upgraded
- xyz_ips_premium_version_ads
- xyz_ips_auto_exception
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/insert-php-code-snippet/admin/admin-notices.php:66
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
insert-php-code-snippet/insert-php-code-snippet.php 92% from 13 tests
The main PHP file in "Insert PHP Code Snippet" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 200 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,667 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 306 | 176 | 2,153 |
CSS | 1 | 145 | 3 | 502 |
JavaScript | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
18 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/preview.png | 9.06KB | 3.56KB | ▼ 60.69% |
images/activate.png | 2.79KB | 1.53KB | ▼ 44.97% |
images/new_star.png | 4.65KB | 1.93KB | ▼ 58.47% |
images/xyz_logo.png | 9.26KB | 3.02KB | ▼ 67.36% |
images/pause.png | 6.80KB | 4.51KB | ▼ 33.71% |