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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.69MB] [CPU: ▼20.36ms] Passed 4 tests
Server-side resources used by WUXT Headless WordPress API Extensions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.66 ▲0.56 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.89 ▼15.37 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.97 ▲0.90 |
Add New Post /wp-admin/post-new.php | 3.13 ▼2.76 | 35.26 ▼67.10 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.20 ▲0.46 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WUXT Headless WordPress API Extensions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.57 ▼0.71 | 1.73 ▲0.23 | 37.67 ▼4.49 |
Dashboard /wp-admin | 2,206 ▲20 | 5.85 ▲0.94 | 107.75 ▼13.81 | 38.75 ▼3.42 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.14 ▲0.11 | 39.09 ▼3.43 | 34.06 ▼3.50 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.60 ▼0.87 | 656.76 ▲0.34 | 63.47 ▲8.27 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.02 | 98.01 ▼4.55 | 40.41 ▼3.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- 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)
Good news, no errors were detected
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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wuxt-headless-wp-api-extensions/extensions/relation.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wuxt-headless-wp-api-extensions/extensions/geo.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wuxt-headless-wp-api-extensions/extensions/menu.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wuxt-headless-wp-api-extensions/extensions/front-page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wuxt-headless-wp-api-extensions/extensions/slug.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wuxt-headless-wp-api-extensions/extensions/meta.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wuxt-headless-wp-api-extensions/extensions/front-page.php:7
- > 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 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wuxt-headless-wp-api-extensions ===
) - Screenshots: Please add images for these screenshots: #1 (Posts request extended with meta-fields from ACF and Yoast WordPress SEO), #2 (New menu endpoint), #3 (New front-page endpoint)
wuxt-headless-wp-api-extensions/wuxt-headless-wp-api-extensions.php 92% from 13 tests
The main PHP script in "WUXT Headless WordPress API Extensions" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 213 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin334 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 133 | 87 | 334 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 6.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 3 | 42.86% |
▷ Public methods | 5 | 71.43% |
▷ Protected methods | 2 | 28.57% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.24MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 95.98KB | 27.59KB | ▼ 71.26% |
screenshot-3.png | 56.51KB | 17.08KB | ▼ 69.77% |
screenshot-1.png | 90.82KB | 23.32KB | ▼ 74.32% |