Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.10ms] Passed 4 tests
This is a short check of server-side resources used by tagmate.io — code snippet installer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.39 ▼3.41 |
Dashboard /wp-admin | 3.35 ▲0.01 | 46.57 ▼14.10 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 45.31 ▼1.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 82.70 ▼9.89 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 39.38 ▲5.05 |
Tagmate /wp-admin/options-general.php?page=tgm | 3.21 | 31.38 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
tgm_option_tag_status |
widget_theysaidso_widget |
tgm_option_platform_id |
tgm_option_tag_location |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
tgm_option_user_id |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for tagmate.io — code snippet installer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.61 ▼0.77 | 1.91 ▼0.48 | 43.41 ▲1.21 |
Dashboard /wp-admin | 2,210 ▲25 | 5.89 ▲1.01 | 107.78 ▼4.41 | 41.08 ▲0.28 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.03 | 36.89 ▼3.14 | 33.04 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.24 ▲0.16 | 674.72 ▼4.60 | 69.48 ▲17.72 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.13 ▼0.08 | 107.70 ▼0.47 | 48.04 ▲2.03 |
Tagmate /wp-admin/options-general.php?page=tgm | 938 | 2.07 | 30.34 | 29.09 |
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 10 options in the database
- tgm_option_platform_id
- tgm_option_tag_location
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- tgm_option_user_id
- widget_theysaidso_widget
- tgm_option_tag_status
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tgm
- > Warning in wp-content/plugins/tagmate-io-code-snippet-installer/admin/settings.php+97
Illegal string offset 'tmg_select_location'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tgm
- > Notice in wp-content/plugins/tagmate-io-code-snippet-installer/admin/settings.php+97
Uninitialized string offset: 0
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: code snippet, saas, widget, embed code, analytics
tagmate-io-code-snippet-installer/tagmate.php 92% from 13 tests
Analyzing the main PHP file in "tagmate.io — code snippet installer" version 1.0.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tagmate-io-code-snippet-installer.php" instead of "tagmate.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
There were no executable files found in this plugin254 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 109 | 73 | 254 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
2 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/tagmate-logo.png | 23.52KB | 12.20KB | ▼ 48.15% |
screenshot-2.png | 156.39KB | 67.65KB | ▼ 56.74% |