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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.00ms] Passed 4 tests
This is a short check of server-side resources used by snip - Structured Data & Schema
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.12 ▼5.05 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.72 ▼9.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.14 ▲4.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.90 ▼3.55 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.61 ▲2.30 |
Server storage [IO: ▲4.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 126 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by snip - Structured Data & Schema
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.72 ▲0.37 | 1.67 ▼0.08 | 37.41 ▼5.97 |
Dashboard /wp-admin | 2,192 ▲12 | 5.47 ▼0.17 | 89.26 ▼10.67 | 39.21 ▼3.48 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.04 | 39.64 ▲2.02 | 37.11 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.04 ▼0.12 | 614.73 ▲9.67 | 53.37 ▲2.96 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.23 ▲0.05 | 95.24 ▼11.14 | 41.48 ▼2.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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)
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wpbuddy\\rich_snippets\\_x() in wp-content/plugins/snip-structured-data/classes/view/admin/snippets/metabox/help.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: rich snippets, structured data, schema, schemaorg
snip-structured-data/rich-snippets-wordpress-plugin.php 77% from 13 tests
The main file in "snip - Structured Data & Schema" v. 2.31.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.8.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("snip-structured-data.php" instead of "rich-snippets-wordpress-plugin.php")
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected32,619 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 2,530 | 1,973 | 18,552 |
PHP | 57 | 3,130 | 5,331 | 8,802 |
PO File | 3 | 1,483 | 1,716 | 4,730 |
CSS | 10 | 156 | 201 | 526 |
SVG | 3 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 28.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 9 | 26.47% |
Methods | 368 | |
▷ Static methods | 77 | 20.92% |
▷ Public methods | 325 | 88.32% |
▷ Protected methods | 19 | 5.16% |
▷ Private methods | 24 | 6.52% |
Functions | 121 | |
▷ Named functions | 7 | 5.79% |
▷ Anonymous functions | 114 | 94.21% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.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
17 compressed PNG files occupy 1.19MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/examples/howto.png | 72.77KB | 77.65KB | 0.00% |
img/examples/article.png | 66.41KB | 72.00KB | 0.00% |
img/examples/corporate-contact.png | 66.46KB | 71.01KB | 0.00% |
img/examples/preview.png | 38.91KB | 46.38KB | 0.00% |
img/examples/book.png | 72.90KB | 78.09KB | 0.00% |