Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.37ms] Passed 4 tests
Analyzing server-side resources used by Udimi Optin Tracking
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.61 ▲0.61 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.61 ▼16.41 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.20 ▲2.10 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.90 ▼4.54 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.84 ▼1.14 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Udimi Optin Tracking
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲38 | 14.38 ▼0.01 | 1.65 ▼0.23 | 43.51 ▲0.51 |
Dashboard /wp-admin | 2,218 ▲41 | 5.77 ▲0.20 | 81.09 ▼9.19 | 74.89 ▲36.24 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.01 ▲0.00 | 38.30 ▲0.17 | 32.24 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,707 ▲181 | 24.95 ▲1.34 | 674.51 ▲0.18 | 53.76 ▼0.82 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.21 ▼0.00 | 96.83 ▲3.07 | 66.47 ▲22.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/udimi-optin/udimi-optin.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'UdimiOptin' not found in wp-content/plugins/udimi-optin/admin/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in udimi-optin/assets to your readme.txt
udimi-optin/udimi-optin.php Passed 13 tests
The main PHP file in "Udimi Optin Tracking" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
This plugin automatically inserts Udimi Optin tracking code to your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin241 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 35 | 33 | 208 |
JavaScript | 1 | 0 | 0 | 33 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo16.png | 1.01KB | 0.18KB | ▼ 82.42% |
images/logo24.png | 1.07KB | 0.23KB | ▼ 78.74% |
images/logo64.png | 1.24KB | 0.32KB | ▼ 74.04% |
images/logo.png | 1.24KB | 0.32KB | ▼ 74.08% |