Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.03ms] Passed 4 tests
This is a short check of server-side resources used by Structured data Google
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 45.53 ▼1.31 |
Dashboard /wp-admin | 3.41 ▲0.10 | 47.78 ▼0.33 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 54.28 ▲5.40 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 82.79 ▼12.24 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.31 ▲1.75 |
Local business /wp-admin/admin.php?page=gsd-local | 3.33 | 39.68 |
Google Structured data /wp-admin/admin.php?page=gsd | 3.33 | 37.22 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Structured data Google: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 13.36 ▼1.32 | 1.83 ▼0.06 | 42.20 ▼1.50 |
Dashboard /wp-admin | 2,233 ▲45 | 4.86 ▼1.05 | 100.97 ▼3.17 | 39.15 ▲1.15 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.02 ▲0.01 | 38.28 ▼1.49 | 35.76 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,564 ▲45 | 18.23 ▼4.99 | 700.29 ▲99.93 | 57.68 ▲3.06 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.19 ▼0.01 | 95.44 ▼8.25 | 42.48 ▼1.60 |
Local business /wp-admin/admin.php?page=gsd-local | 1,264 | 3.10 | 37.46 | 24.39 |
Google Structured data /wp-admin/admin.php?page=gsd | 1,066 | 3.04 | 38.39 | 24.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function gsd\\plugin_dir_url() in wp-content/plugins/structured-data-google/structured-data-google.php:19
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: structured business data, structured data, structured maps data, structured data google
structured-data-google/structured-data-google.php 92% from 13 tests
The entry point to "Structured data Google" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- 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 glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin594 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 163 | 24 | 491 |
PO File | 1 | 29 | 29 | 76 |
JavaScript | 1 | 15 | 0 | 21 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 10.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 5 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 12 | 92.31% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin