Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼1.29ms] Passed 4 tests
A check of server-side resources used by Tracking Script Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 40.28 ▲1.52 |
Dashboard /wp-admin | 3.53 ▲0.18 | 46.95 ▼16.42 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 50.19 ▲5.43 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 95.93 ▲7.57 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 38.05 ▲4.32 |
Tracking Script Manager /wp-admin/edit.php?post_type=r8_tracking_scripts | 3.49 | 38.33 |
Add New Tracking Script /wp-admin/post-new.php?post_type=r8_tracking_scripts | 3.65 | 55.78 |
Server storage [IO: ▲1.59MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Tracking Script Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲56 | 14.23 ▼0.04 | 1.59 ▼0.20 | 35.78 ▼7.92 |
Dashboard /wp-admin | 2,220 ▲40 | 5.58 ▼0.06 | 84.92 ▼13.86 | 39.13 ▼4.18 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.95 ▲0.00 | 39.56 ▲4.02 | 36.15 ▲2.27 |
Add New Post /wp-admin/post-new.php | 1,549 ▲14 | 23.72 ▲0.58 | 649.68 ▼39.88 | 61.48 ▲4.07 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.16 ▼0.06 | 109.50 ▲5.36 | 48.29 ▲4.08 |
Tracking Script Manager /wp-admin/edit.php?post_type=r8_tracking_scripts | 1,179 | 2.02 | 35.61 | 32.01 |
Add New Tracking Script /wp-admin/post-new.php?post_type=r8_tracking_scripts | 2,029 | 5.58 | 116.50 | 46.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/tracking-script-manager/templates/script-active-metabox.php
- > /wp-content/plugins/tracking-script-manager/templates/script-code-metabox.php
- > /wp-content/plugins/tracking-script-manager/templates/script-order-metabox.php
- > /wp-content/plugins/tracking-script-manager/templates/script-location-metabox.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tracking-script-manager/templates/script-expiry-metabox.php:3
- > PHP Notice
Undefined variable: location in wp-content/plugins/tracking-script-manager/templates/script-location-metabox.php on line 4
- > PHP Notice
Undefined variable: script_code in wp-content/plugins/tracking-script-manager/templates/script-code-metabox.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/tracking-script-manager/classes/wp-background-process.php:16
- > PHP Notice
Undefined variable: active in wp-content/plugins/tracking-script-manager/templates/script-active-metabox.php on line 2
- > PHP Notice
Undefined variable: order in wp-content/plugins/tracking-script-manager/templates/script-order-metabox.php on line 1
- > PHP Notice
Undefined variable: expiry_data in wp-content/plugins/tracking-script-manager/templates/script-expiry-metabox.php on line 3
- > PHP Notice
Undefined variable: location in wp-content/plugins/tracking-script-manager/templates/script-location-metabox.php on line 3
- > PHP Notice
Undefined variable: location in wp-content/plugins/tracking-script-manager/templates/script-location-metabox.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/tracking-script-manager/classes/class-process-tracking-scripts.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Control Description), #2 (Using the "After " script location.), #3 (View your Tracking Scripts.), #4 (Add a new Tracking Script to a specific post or page (including custom post types).)
- Tags: You are using too many tags: 18 tag instead of maximum 10
tracking-script-manager/tracking-scripts-manager.php 92% from 13 tests
The main file in "Tracking Script Manager" v. 2.0.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tracking-script-manager.php" instead of "tracking-scripts-manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,741 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 200 | 362 | 1,106 |
SVG | 1 | 0 | 0 | 414 |
JavaScript | 3 | 7 | 7 | 141 |
CSS | 4 | 4 | 1 | 80 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 33.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 2 | 50.00% |
▷ Concrete classes | 2 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 63.24% |
▷ Protected methods | 22 | 32.35% |
▷ Private methods | 3 | 4.41% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 1.00MB with 0.79MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) screenshot-1.png | 157.23KB | 0.00KB | ▼ 100.00% |
screenshot-3.png | 265.09KB | 69.25KB | ▼ 73.88% |
screenshot-2.png | 319.60KB | 95.68KB | ▼ 70.06% |
screenshot-4.png | 281.75KB | 72.83KB | ▼ 74.15% |