Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼6.15ms] Passed 4 tests
An overview of server-side resources used by GTM Server Side
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 53.86 ▲15.12 |
Dashboard /wp-admin | 3.56 ▲0.22 | 52.97 ▼8.83 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 51.01 ▲1.63 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 84.51 ▼18.09 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.63 ▲0.71 |
GTM Server Side /wp-admin/options-general.php?page=gtm-server-side-admin-settings | 3.40 | 35.00 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
gtm_server_side_placement |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for GTM Server Side
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲77 | 14.25 ▼0.10 | 2.42 ▲0.56 | 47.62 ▲9.47 |
Dashboard /wp-admin | 2,202 ▲21 | 5.62 ▼0.08 | 90.92 ▼17.13 | 44.98 ▲7.56 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.01 ▼0.01 | 34.35 ▼5.87 | 35.45 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.37 ▲0.12 | 674.88 ▲71.47 | 64.96 ▲19.27 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▲0.02 | 96.63 ▼1.40 | 43.69 ▼0.27 |
GTM Server Side /wp-admin/options-general.php?page=gtm-server-side-admin-settings | 935 | 1.92 | 26.14 | 27.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- gtm_server_side_placement
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'GTM_Server_Side_Admin_Settings' not found in wp-content/plugins/gtm-server-side/templates/class-gtm-server-side-admin.php:14
- > 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 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== gtm-server-side ===
) - Screenshots: A description for screenshot #3 is missing in gtm-server-side/assets to your readme.txt
gtm-server-side/gtm-server-side.php 92% from 13 tests
Analyzing the main PHP file in "GTM Server Side" version 2.1.9
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 224 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,335 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 330 | 890 | 1,767 |
JavaScript | 3 | 63 | 57 | 421 |
PO File | 1 | 41 | 49 | 128 |
CSS | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 25 | 24.27% |
▷ Public methods | 85 | 82.52% |
▷ Protected methods | 1 | 0.97% |
▷ Private methods | 17 | 16.50% |
Functions | 18 | |
▷ Named functions | 1 | 5.56% |
▷ Anonymous functions | 17 | 94.44% |
Constants | 29 | |
▷ Global constants | 25 | 86.21% |
▷ Class constants | 4 | 13.79% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin