Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.20ms] Passed 4 tests
Server-side resources used by SCHEMA for Article
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 43.76 ▲2.54 |
Dashboard /wp-admin | 3.34 ▲0.03 | 53.38 ▲4.22 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.58 ▼0.85 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.48 ▼9.61 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.68 ▼0.89 |
About /wp-admin/admin.php?page=schema-article-about-plugins | 3.25 | 35.60 |
Settings /wp-admin/admin.php?page=schema-article-settings | 3.27 | 34.64 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
schema_for_article_plugin_version |
Browser metrics Passed 4 tests
A check of browser resources used by SCHEMA for Article
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.37 ▼0.21 | 1.64 ▲0.02 | 44.41 ▲0.37 |
Dashboard /wp-admin | 2,225 ▲48 | 5.62 ▼0.06 | 96.48 ▲7.82 | 41.68 ▼0.28 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.99 ▲0.01 | 37.79 ▼2.00 | 33.19 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 22.98 ▼0.03 | 614.90 ▼6.10 | 50.53 ▼4.71 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.15 ▲0.04 | 97.35 ▼7.91 | 44.98 ▲2.05 |
About /wp-admin/admin.php?page=schema-article-about-plugins | 2,331 | 1.92 | 25.87 | 45.87 |
Settings /wp-admin/admin.php?page=schema-article-settings | 1,088 | 2.12 | 23.41 | 31.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- schema_for_article_plugin_version
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=schema-article-settings
- > Notice in wp-content/plugins/schema-for-article/admin/class-schema-for-article-settings.php+71
Undefined variable: article_checked
- > GET request to /wp-admin/admin.php?page=schema-article-settings
- > Notice in wp-content/plugins/schema-for-article/admin/class-schema-for-article-settings.php+72
Undefined variable: news_checked
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 items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/schema-for-article/schema-for-article.php
- > /wp-content/plugins/schema-for-article/schema-for-article-main.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: structured data, schema, rich snippets, schema markup, markup...
schema-for-article/schema-for-article.php 92% from 13 tests
The main file in "SCHEMA for Article" v. 0.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 193 characters long)
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
Good job! No executable or dangerous file extensions detected8,928 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 9 | 1 | 1 | 8,119 |
PHP | 8 | 66 | 115 | 544 |
CSS | 4 | 3 | 2 | 265 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 5.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 29.41% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/prevent-xss-vulnerability.png | 7.36KB | 7.25KB | ▼ 1.51% |
admin/images/media-post-permalink.png | 24.03KB | 11.56KB | ▼ 51.92% |