Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.40ms] Passed 4 tests
This is a short check of server-side resources used by Serviceform Pixel
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.47 ▼2.17 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.28 ▼2.83 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.24 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.32 ▼16.23 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 37.66 ▲2.02 |
Settings /wp-admin/admin.php?page=serviceform-pixel-settings | 3.22 | 31.51 |
Serviceform /wp-admin/admin.php?page=serviceform-pixel/class-serviceform-pixel-settings.php | 3.22 | 30.97 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Serviceform Pixel
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲87 | 13.60 ▼0.78 | 1.48 ▼0.43 | 42.28 ▼2.34 |
Dashboard /wp-admin | 2,231 ▲46 | 5.85 ▼0.02 | 103.31 ▼14.62 | 70.32 ▲22.88 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.02 ▲0.01 | 34.19 ▼0.28 | 31.84 ▼2.05 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 17.56 ▼5.60 | 715.75 ▲32.82 | 62.15 ▲4.18 |
Media Library /wp-admin/upload.php | 1,404 ▲22 | 4.19 ▼0.02 | 101.29 ▼1.17 | 47.49 ▲3.64 |
Settings /wp-admin/admin.php?page=serviceform-pixel-settings | 820 | 2.02 | 27.06 | 31.80 |
Serviceform /wp-admin/admin.php?page=serviceform-pixel/class-serviceform-pixel-settings.php | 820 | 2.05 | 25.03 | 25.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=serviceform-pixel/class-serviceform-pixel-settings.php
- > Notice in wp-content/plugins/serviceform-pixel/class-serviceform-pixel-settings.php+238
Undefined index: post_id
SRP 50% 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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/serviceform-pixel/class-serviceform-pixel-settings.php:376
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/serviceform-pixel/pages/serviceform-pixel-settings.php:19
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: serviceform, bot, chatbot
serviceform-pixel/class-serviceform-pixel-settings.php 92% from 13 tests
The main PHP script in "Serviceform Pixel" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("serviceform-pixel.php" instead of "class-serviceform-pixel-settings.php")
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
No dangerous file extensions were detected164 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 200 | 164 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 10 | 71.43% |
▷ Protected methods | 3 | 21.43% |
▷ Private methods | 1 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.31MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo24.png | 1.40KB | 1.13KB | ▼ 19.11% |
img/logo-mini.png | 14.20KB | 6.09KB | ▼ 57.11% |
assets/screenshot-1.png | 298.97KB | 119.29KB | ▼ 60.10% |