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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.48ms] Passed 4 tests
This is a short check of server-side resources used by LighTag - Lightweight Google Tag Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.22 ▼5.03 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.99 ▼11.36 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.66 ▲0.57 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.14 ▼18.11 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.90 ▲4.23 |
LighTag /wp-admin/options-general.php?page=lightag | 3.24 | 33.25 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for LighTag - Lightweight Google Tag Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.38 ▲0.03 | 1.90 ▼0.34 | 40.82 ▼3.42 |
Dashboard /wp-admin | 2,204 ▲27 | 5.58 ▼0.02 | 86.15 ▼12.57 | 43.28 ▼4.81 |
Posts /wp-admin/edit.php | 2,109 ▲12 | 2.03 ▲0.05 | 35.88 ▲0.63 | 33.65 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 22.67 ▼0.46 | 686.42 ▲11.95 | 60.39 ▲6.26 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.13 ▼0.07 | 100.69 ▲5.15 | 45.78 ▼0.15 |
LighTag /wp-admin/options-general.php?page=lightag | 822 | 2.00 | 23.36 | 32.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lightag-lightweight-google-tag-manager/inc/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lightag-lightweight-google-tag-manager/default.php:51
- > PHP Notice
Undefined index: wp_version in wp-content/plugins/lightag-lightweight-google-tag-manager/default.php on line 50
- > 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 90% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Requires php: The plugin version is formatted incorrectly
lightag-lightweight-google-tag-manager/default.php 85% from 13 tests
This is the main PHP file of "LighTag - Lightweight Google Tag Manager" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("lightag-lightweight-google-tag-manager.php" instead of "default.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin127 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 46 | 114 | 127 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.89 |
▷ 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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin