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.10MB] [CPU: ▼1.29ms] Passed 4 tests
A check of server-side resources used by WPSSO REST API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.48 ▲1.73 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.25 ▼0.40 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.40 ▼0.63 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 94.85 ▼1.60 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 32.06 ▼2.51 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPSSO REST API
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲59 | 14.23 ▼0.48 | 2.08 ▲0.23 | 43.93 ▼4.57 |
Dashboard /wp-admin | 2,204 ▲30 | 5.62 ▲0.00 | 83.58 ▼17.37 | 41.99 ▼5.92 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▲0.04 | 37.26 ▲0.04 | 36.06 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 24.97 ▲1.46 | 611.25 ▼36.74 | 69.01 ▲2.00 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▲0.03 | 98.21 ▼1.23 | 43.54 ▲0.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wpsso-rest-api/lib/register.php
- > /wp-content/plugins/wpsso-rest-api/lib/filters.php
- > /wp-content/plugins/wpsso-rest-api/lib/abstract/com/add-on.php
- > /wp-content/plugins/wpsso-rest-api/wpsso-rest-api.php
- > /wp-content/plugins/wpsso-rest-api/gettext/gettext-lib-config.php
- > /wp-content/plugins/wpsso-rest-api/lib/config.php
- > /wp-content/plugins/wpsso-rest-api/lib/abstract/add-on.php
- > /wp-content/plugins/wpsso-rest-api/gettext/gettext-lib-abstract-com.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: rest api, api, meta tags, markup, rest...
wpsso-rest-api/wpsso-rest-api.php Passed 13 tests
This is the main PHP file of "WPSSO REST API" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
119 characters long description:
Extends the WordPress REST API post, term, and user query results with an array of meta tags and Schema JSON-LD markup.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin591 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 279 | 151 | 493 |
PO File | 1 | 10 | 10 | 38 |
HTML | 2 | 32 | 0 | 30 |
Markdown | 1 | 13 | 0 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 8 | 21.05% |
▷ Public methods | 29 | 76.32% |
▷ Protected methods | 4 | 10.53% |
▷ Private methods | 5 | 13.16% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-128x128.png | 19.89KB | 8.34KB | ▼ 58.10% |
images/icon-256x256.png | 50.22KB | 21.98KB | ▼ 56.23% |