Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼140.63ms] Passed 4 tests
This is a short check of server-side resources used by Insert Code Lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▲0.06 | 26.16 ▼0.85 |
Dashboard /wp-admin | 3.11 ▲0.05 | 43.55 ▼1.32 |
Posts /wp-admin/edit.php | 3.23 ▲0.11 | 45.25 ▲0.92 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 86.13 ▼558.55 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 30.45 ▼1.78 |
Insert Code /wp-admin/options-general.php?page=iclp_code | 3.02 | 26.83 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Insert Code Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.87 ▲0.21 | 9.74 ▼1.31 | 50.20 ▼3.07 |
Dashboard /wp-admin | 2,975 ▲44 | 5.98 ▲0.04 | 139.37 ▼4.62 | 114.54 ▲9.66 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.71 ▼0.00 | 60.00 ▼8.63 | 86.05 ▼3.20 |
Add New Post /wp-admin/post-new.php | 1,675 ▲175 | 18.85 ▲0.25 | 375.67 ▼4.09 | 107.81 ▼9.90 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.02 | 145.24 ▼3.68 | 121.58 ▼3.19 |
Insert Code /wp-admin/options-general.php?page=iclp_code | 1,047 | 2.06 | 54.04 | 84.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=iclp_code
- > Notice in wp-content/plugins/insert-code-lite/admin/class-insert-code-lite-admin.php+153
Trying to access array offset on value of type bool
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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/insert-code-lite/admin/partials/insert-code-lite-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
10 plugin tags: html5, analytics, tracking code, html, javascript...
insert-code-lite/insert-code-lite.php Passed 13 tests
"Insert Code Lite" version 0.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Simple way of adding custom scipts and styles to your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected257 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 61 | 407 | 210 |
PO File | 1 | 11 | 13 | 47 |
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.12 |
Average class complexity | 2.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin