Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.75ms] Passed 4 tests
An overview of server-side resources used by WP Schema & Structured Data
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.04 ▼4.80 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.58 ▼4.13 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.43 ▲2.71 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 116.00 ▲29.22 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.47 ▲3.23 |
Licence /wp-admin/admin.php?page=fs-licence-settings | 3.25 | 31.93 |
General /wp-admin/admin.php?page=fs-schema | 3.32 | 33.35 |
Settings /wp-admin/admin.php?page=fs-settings | 3.30 | 35.83 |
Server storage [IO: ▲0.22MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
_fssc_use_data |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Schema & Structured Data: 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,838 ▲92 | 13.60 ▼0.71 | 1.56 ▼0.28 | 39.13 ▼5.56 |
Dashboard /wp-admin | 2,241 ▲56 | 5.86 ▲0.75 | 95.88 ▼9.31 | 37.95 ▼1.76 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.03 ▲0.02 | 34.55 ▼6.53 | 36.76 ▼0.04 |
Add New Post /wp-admin/post-new.php | 8,176 ▲6,657 | 26.01 ▲2.85 | 941.86 ▲289.17 | 80.27 ▲25.51 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.22 ▲0.06 | 98.74 ▼2.49 | 44.88 ▲0.55 |
Licence /wp-admin/admin.php?page=fs-licence-settings | 862 | 2.03 | 31.53 | 29.92 |
General /wp-admin/admin.php?page=fs-schema | 1,192 | 3.13 | 39.77 | 58.19 |
Settings /wp-admin/admin.php?page=fs-settings | 1,093 | 3.00 | 39.61 | 74.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- _fssc_use_data
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fudugo-schema/templates/schema-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/fudugo-schema/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fudugo-schema/includes/class-fs-schema-output.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fudugo-schema/includes/class-fs-schema-function.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Admin Settings), #2 (Single Page setting), #3 (Product Page Setting)
fudugo-schema/fs-schema.php 77% from 13 tests
"WP Schema & Structured Data" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and 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
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fudugo-schema.php" instead of "fs-schema.php")
- Description: Keep the plugin description shorter than 140 characters (currently 226 characters long)
Code Analysis 97% from 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 detected3,289 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 86 | 104 | 2,752 |
CSS | 1 | 3 | 10 | 358 |
JavaScript | 1 | 19 | 4 | 179 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 47.43 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 8.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 42 | |
▷ Static methods | 8 | 19.05% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin