Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/simple-microsoft-dynamics-marketing-web-tracking/microsoft-dynamics-marketing.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; microsoftDynamicsMarketingTracking has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼51.16ms] Passed 4 tests
A check of server-side resources used by Simple Dynamics Marketing Tracking Code Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.94 ▼33.18 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.29 ▼44.27 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 6.13 ▼41.12 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 7.24 ▼86.06 |
Media Library /wp-admin/upload.php | 2.10 ▼1.12 | 6.05 ▼28.19 |
Dynamics Marketing Tracking /wp-admin/options-general.php?page=microsoft_dynamics_marketing_tracking | 2.11 | 5.97 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Dynamics Marketing Tracking Code Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.38 ▼0.23 | 1.72 ▲0.11 | 48.40 ▲4.16 |
Dashboard /wp-admin | 2,196 ▲16 | 5.64 ▼0.04 | 96.78 ▼3.31 | 41.97 ▼1.70 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.01 | 36.53 ▲0.70 | 34.05 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.46 ▲0.47 | 626.19 ▼65.56 | 56.22 ▼1.97 |
Media Library /wp-admin/upload.php | 1,398 ▲4 | 4.19 ▲0.03 | 101.35 ▼0.88 | 42.92 ▼2.94 |
Dynamics Marketing Tracking /wp-admin/options-general.php?page=microsoft_dynamics_marketing_tracking | 858 | 1.99 | 21.96 | 27.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/simple-microsoft-dynamics-marketing-web-tracking/microsoft-dynamics-marketing.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; microsoftDynamicsMarketingTracking has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=microsoft_dynamics_marketing_tracking
- > Deprecated in wp-content/plugins/simple-microsoft-dynamics-marketing-web-tracking/microsoft-dynamics-marketing.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; microsoftDynamicsMarketingTracking has a deprecated constructor
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-microsoft-dynamics-marketing-web-tracking/microsoft-dynamics-marketing.php:63
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The options page.), #2 (Where to find your Dynamics Marketing tracking code.), #3 (Source of the tracking code inserted just before </body>.)
simple-microsoft-dynamics-marketing-web-tracking/microsoft-dynamics-marketing.php 85% from 13 tests
"Simple Dynamics Marketing Tracking Code Plugin" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 149 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-microsoft-dynamics-marketing-web-tracking.php" instead of "microsoft-dynamics-marketing.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected140 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 27 | 140 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.00 |
▷ 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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 23.12KB | 13.99KB | ▼ 39.49% |
screenshot-3.png | 33.10KB | 20.25KB | ▼ 38.82% |
screenshot-2.png | 10.06KB | 5.83KB | ▼ 42.01% |