Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.44MB] [CPU: ▼19.37ms] Passed 4 tests
This is a short check of server-side resources used by G Structured Data
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.24 | 46.43 ▲1.23 |
Dashboard /wp-admin | 3.87 ▲0.24 | 52.19 ▼13.06 |
Posts /wp-admin/edit.php | 3.92 ▲0.24 | 49.62 ▼1.24 |
Add New Post /wp-admin/post-new.php | 3.66 ▼2.49 | 40.90 ▼57.47 |
Media Library /wp-admin/upload.php | 3.73 ▲0.24 | 39.54 ▼5.70 |
Server storage [IO: ▲0.13MB] [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: 11 new files
Database: no new tables, 28 new options
New WordPress options |
---|
gsd_hashtags_background_color |
gsd_hashtags_hover_background_color |
gsd_publisher_logo_url |
gsd_publisher_name |
gsd_contact_card_border_color |
gsd_structured_data_active |
gsd_contact_card_activation |
gsd_updating_content_dates_gmt_diff |
can_compress_scripts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
G Structured Data: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.30 ▼0.35 | 1.88 ▼0.08 | 41.89 ▼0.62 |
Dashboard /wp-admin | 2,214 ▲34 | 5.64 ▼0.04 | 84.59 ▼10.21 | 38.46 ▼7.06 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.97 ▼0.06 | 37.96 ▲0.93 | 35.18 ▼2.66 |
Add New Post /wp-admin/post-new.php | 6,602 ▲5,057 | 26.18 ▲2.94 | 889.67 ▲176.73 | 68.27 ▲15.53 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.22 ▼0.03 | 100.42 ▼12.79 | 44.40 ▼0.80 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 28 options
- gsd_updating_content_dates_gmt_diff
- gsd_publisher_logo_url
- gsd_hashtags_text_color
- gsd_structured_data_active
- gsd_background_color
- gsd_post_types
- gsd_site_tracking_codes_activation
- gsd_contact_card_background_color
- theysaidso_admin_options
- gsd_hashtags_background_color
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-structured-data/gsd-admin.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-structured-data/gsd-category-functions.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/g-structured-data/includes/class/gsd_widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/g-structured-data/includes/gsd-admin-template.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/g-structured-data/includes/class/gsd_widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/g-structured-data/includes/class/gsd_widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please a description for screenshot #2 in g-structured-data/assets to your readme.txt
g-structured-data/index.php 85% from 13 tests
Analyzing the main PHP file in "G Structured Data" version 1.1.6
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("g-structured-data.php" instead of "index.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,656 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 176 | 13 | 1,314 |
Sass | 1 | 68 | 0 | 341 |
CSS | 1 | 0 | 1 | 1 |
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.18 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/hashtags.png | 30.36KB | 12.48KB | ▼ 58.90% |