Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼8.66ms] Passed 4 tests
Analyzing server-side resources used by Insert Code by Angie Makes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.62 ▼1.71 |
Dashboard /wp-admin | 3.38 ▲0.03 | 50.72 ▼11.92 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 45.29 ▼10.97 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.04 ▼10.02 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.66 ▲2.00 |
Insert Code /wp-admin/options-general.php?page=wpc-insert-code | 3.29 | 33.95 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Insert Code by Angie Makes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.07 ▼0.48 | 1.99 ▲0.32 | 43.97 ▼1.59 |
Dashboard /wp-admin | 2,202 ▲25 | 5.69 ▲0.11 | 90.82 ▼23.28 | 42.24 ▼16.22 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▼0.02 | 36.06 ▼5.73 | 34.92 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.04 ▼0.01 | 676.62 ▼4.47 | 51.68 ▲0.50 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▲0.05 | 98.51 ▼21.08 | 46.54 ▼1.20 |
Insert Code /wp-admin/options-general.php?page=wpc-insert-code | 832 | 1.99 | 24.93 | 29.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
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
Good news, no errors were detected
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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wpc-insert-code/public/views/public.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wpc-insert-code/admin/views/admin.php:16
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 21 tag instead of maximum 10
wpc-insert-code/wpc-insert-code.php Passed 13 tests
The main PHP script in "Insert Code by Angie Makes" version 1.2 is automatically included on every request by WordPress
81 characters long description:
Easily insert HTML, Javascript, CSS, into the head and footer areas of your site.
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
Good job! No executable or dangerous file extensions detected385 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 130 | 403 | 318 |
Markdown | 1 | 18 | 0 | 36 |
CSS | 2 | 6 | 7 | 21 |
JavaScript | 2 | 8 | 1 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 29 | |
▷ Static methods | 5 | 17.24% |
▷ Public methods | 26 | 89.66% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.34% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin