Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/wp-rest-yoast-meta/includes/class-plugin.php+112
Use of undefined constant WPSEO_VERSION - assumed 'WPSEO_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.10ms] Passed 4 tests
This is a short check of server-side resources used by WP REST Yoast Meta
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.00 | 39.03 ▼3.01 |
Dashboard /wp-admin | 3.35 ▼0.04 | 49.64 ▼14.91 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 47.62 ▼2.75 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 84.14 ▼23.74 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 37.47 ▲1.33 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP REST Yoast Meta
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 14.27 ▼0.12 | 1.88 ▲0.13 | 45.46 ▲4.49 |
Dashboard /wp-admin | 2,198 ▲18 | 5.61 ▼0.04 | 83.35 ▼3.22 | 40.89 ▼3.41 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.07 | 38.86 ▲2.50 | 31.43 ▼4.38 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.11 ▼0.04 | 596.68 ▼111.93 | 46.61 ▼10.64 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▼0.03 | 100.91 ▼5.54 | 42.00 ▼5.44 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: meta, wp-rest, json-ld, yoast, seo...
wp-rest-yoast-meta/wp-rest-yoast-meta.php Passed 13 tests
The main PHP script in "WP REST Yoast Meta" version 2021.1.2 is automatically included on every request by WordPress
45 characters long description:
Add yoast meta information to the WP REST API
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin445 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 128 | 476 | 445 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 13.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 1 | 3.12% |
▷ Public methods | 22 | 68.75% |
▷ Protected methods | 2 | 6.25% |
▷ Private methods | 8 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin