Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.04ms] Passed 4 tests
Server-side resources used by TruConversion Connect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.94 ▼5.14 |
Dashboard /wp-admin | 3.38 ▲0.03 | 45.65 ▼14.75 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.39 ▲2.61 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 78.16 ▼15.97 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 32.00 ▼0.31 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
TruConversion Connect: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.42 ▼0.23 | 1.78 ▼0.08 | 43.74 ▼1.07 |
Dashboard /wp-admin | 2,219 ▲31 | 5.80 ▼0.08 | 96.39 ▼7.38 | 38.87 ▼3.26 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.04 ▼0.00 | 42.55 ▲7.83 | 35.33 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.58 ▲0.32 | 597.14 ▼78.99 | 45.19 ▼7.29 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.23 ▲0.05 | 98.94 ▼3.49 | 42.30 ▼4.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/truconversion-connect/truconversion-connect.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/truconversion-connect/truconversion-settings.php:370
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
These attributes need your attention:
- Screenshots: Add a description for screenshot #6 in truconversion-connect/assets to your readme.txt
truconversion-connect/truconversion-connect.php Passed 13 tests
"TruConversion Connect" version 1.2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Enables TruConversion tracking code on all pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected753 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 8 | 414 |
JavaScript | 1 | 16 | 3 | 185 |
CSS | 1 | 0 | 1 | 154 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/connection.png | 10.25KB | 5.23KB | ▼ 48.98% |
images/logo.png | 5.05KB | 2.55KB | ▼ 49.54% |
images/wp-tc-logo.png | 7.50KB | 3.17KB | ▼ 57.82% |