Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.14ms] Passed 4 tests
This is a short check of server-side resources used by Divvit e-commerce analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.85 ▲1.79 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.68 ▼3.82 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.10 ▼3.33 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.05 ▼11.08 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.72 ▲1.67 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/divvit-ecommerce-analytics/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Divvit e-commerce analytics
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.23 ▼1.14 | 1.67 ▼0.07 | 43.85 ▲0.52 |
Dashboard /wp-admin | 2,221 ▲21 | 5.80 ▼0.06 | 114.97 ▲9.98 | 41.80 ▼4.72 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.02 | 34.05 ▼4.24 | 36.58 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.19 ▲5.52 | 669.48 ▲6.57 | 56.27 ▲8.30 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.21 ▲0.02 | 98.48 ▼9.42 | 43.75 ▼1.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/divvit-ecommerce-analytics/public/partials/divvit-tracking-public-display.php
- > /wp-content/plugins/divvit-ecommerce-analytics/admin/partials/plugin-divvit-tracking-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 23 tag instead of maximum 10
divvit-ecommerce-analytics/divvit-tracking.php 85% from 13 tests
Analyzing the main PHP file in "Divvit e-commerce analytics" version 1.0.4
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("divvit-ecommerce-analytics.php" instead of "divvit-tracking.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin330 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 109 | 448 | 327 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin