Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.01MB] [CPU: ▲0.73ms] Passed 4 tests
Server-side resources used by Schema - All In One Schema Rich Snippets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 41.51 ▲3.50 |
Dashboard /wp-admin | 4.42 ▲1.08 | 52.32 ▼3.41 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 52.57 ▲6.57 |
Add New Post /wp-admin/post-new.php | 7.12 ▲1.23 | 87.17 ▼3.59 |
Media Library /wp-admin/upload.php | 4.31 ▲1.09 | 40.45 ▲6.41 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 18 new options
New WordPress options |
---|
bsf_event |
theysaidso_admin_options |
bsf_service |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
bsf_software |
bsf_recipe |
bsf_product |
bsf_woocom_setting |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Schema - All In One Schema Rich Snippets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.14 ▼0.21 | 1.66 ▼0.06 | 42.18 ▲2.45 |
Dashboard /wp-admin | 2,218 ▲41 | 5.62 ▲0.00 | 90.30 ▲0.64 | 35.72 ▼7.15 |
Posts /wp-admin/edit.php | 2,132 ▲35 | 2.03 ▲0.05 | 39.88 ▲3.91 | 33.75 ▼2.18 |
Add New Post /wp-admin/post-new.php | 7,700 ▲6,174 | 19.18 ▼4.16 | 885.12 ▲235.05 | 58.02 ▼2.62 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.19 ▼0.12 | 102.37 ▼1.78 | 41.43 ▼4.45 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 18 options
- theysaidso_admin_options
- bsf_service
- bsf_video
- bsf_software
- widget_recent-comments
- bsf_article
- bsf_review
- bsf_product
- bsf_recipe
- bsf_person
- ...
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-schemaorg-rich-snippets/functions.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/all-in-one-schemaorg-rich-snippets/admin/index.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/all-in-one-schemaorg-rich-snippets/init.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: schemaorg, microdata, schema markup, schema, structured data...
all-in-one-schemaorg-rich-snippets/index.php 77% from 13 tests
The primary PHP file in "Schema - All In One Schema Rich Snippets" version 1.6.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 231 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("all-in-one-schemaorg-rich-snippets.php" instead of "index.php")
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
There were no executable files found in this plugin12,752 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 23 | 1,610 | 7,084 |
PHP | 10 | 381 | 849 | 4,920 |
CSS | 9 | 14 | 32 | 745 |
JSON | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 9 | 12.16% |
▷ Public methods | 58 | 78.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 21.62% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
21 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.70KB | 0.86KB | 0.00% |
images/icons.png | 0.86KB | 0.87KB | 0.00% |
css/star.png | 4.02KB | 1.51KB | ▼ 62.46% |
images/kylevan.png | 12.76KB | 13.32KB | 0.00% |
images/latest.png | 0.76KB | 0.77KB | 0.00% |