Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼2.36ms] 75% from 4 tests
A check of server-side resources used by Really Simple Google Tag Manager
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,345.96ms on /wp-admin/admin.php?page=simple-tag-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 43.03 ▼2.27 |
Dashboard /wp-admin | 3.48 ▲0.18 | 50.43 ▼1.57 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 55.65 ▲5.80 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 88.03 ▼11.41 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 47.28 ▲12.22 |
Recommendations /wp-admin/admin.php?page=simple-tag-recommendations | 7.69 | 1,345.96 |
Google Tag Manager /wp-admin/admin.php?page=simple-googletag-setting-page | 3.38 | 34.73 |
Server storage [IO: ▲0.20MB] [DB: ▲0.67MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Really Simple Google Tag Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲50 | 14.24 ▼0.32 | 1.74 ▼0.07 | 44.15 ▼1.69 |
Dashboard /wp-admin | 2,208 ▲31 | 5.51 ▼0.11 | 89.94 ▼13.27 | 60.74 ▲17.61 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.01 ▲0.01 | 39.10 ▼4.01 | 34.41 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,700 ▲172 | 22.25 ▼0.50 | 739.36 ▲86.66 | 72.85 ▲17.98 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.25 ▲0.08 | 113.93 ▲12.59 | 80.92 ▲34.07 |
Recommendations /wp-admin/admin.php?page=simple-tag-recommendations | 2,928 | 2.22 | 34.46 | 73.02 |
Google Tag Manager /wp-admin/admin.php?page=simple-googletag-setting-page | 857 | 2.05 | 24.81 | 26.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/really-simple-google-tag-manager/includes/class.simple-googletag.php:29
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/really-simple-google-tag-manager/includes/class.simple-googletag.php on line 28
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/really-simple-google-tag-manager/includes/class.simple-googletag.php on line 28
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/really-simple-google-tag-manager/includes/class.simple-googletag.php on line 28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: google tag manager, googletag, google, tagmanager, really simple google tag manager
really-simple-google-tag-manager/really-simple-google-tag-manager.php 92% from 13 tests
The main file in "Really Simple Google Tag Manager" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin853 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 130 | 104 | 714 |
JavaScript | 1 | 28 | 25 | 105 |
YAML | 2 | 2 | 0 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
21 PNG files occupy 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/icon-256x256.png | 2.18KB | 1.47KB | ▼ 32.59% |
admin/assets/images/extensions/swatchly-pro.png | 13.99KB | 5.41KB | ▼ 61.37% |
(invalid) admin/assets/images/extensions/was-this-helpful.png | 1.21KB | 0.00KB | ▼ 100.00% |
(invalid) admin/assets/images/extensions/docus-pro.png | 3.98KB | 0.00KB | ▼ 100.00% |
.wordpress-org/banner-772x250.png | 10.57KB | 5.06KB | ▼ 52.11% |