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.09MB] [CPU: ▼10.58ms] Passed 4 tests
This is a short check of server-side resources used by WP Headless CMS Framework
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.10 ▼0.36 | 22.44 ▼17.21 |
Dashboard /wp-admin | 3.59 ▲0.28 | 46.22 ▼0.30 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 45.68 ▼2.03 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 81.14 ▼22.78 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.22 ▲3.66 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Headless CMS Framework
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,435 ▼311 | 13.10 ▼1.49 | 0.49 ▼1.57 | 0.10 ▼43.36 |
Dashboard /wp-admin | 2,225 ▲40 | 4.89 ▼0.97 | 99.96 ▼0.03 | 40.32 ▼3.03 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.06 ▲0.05 | 36.14 ▼5.68 | 33.03 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 23.08 ▼0.06 | 659.44 ▲14.43 | 76.16 ▲23.71 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.21 ▼0.03 | 95.78 ▼12.10 | 46.80 ▲0.07 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% 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 0% from 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
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-rest-headless/template-parts/settings_main-help.php
- > /wp-content/plugins/wp-rest-headless/template-parts/quick_start-help.php
- 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-rest-headless/includes/security/class-wp-headless-disable-front-end.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Headless_Rest_Api_Cleanup' not found in wp-content/plugins/wp-rest-headless/template-parts/rest_cleanup-help.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-rest-headless/includes/gutenberg/class-wp-headless-rest-gutenberg-blocks.php:24
- > PHP Fatal error
Uncaught Error: Class 'WP_Headless_Settings' not found in wp-content/plugins/wp-rest-headless/includes/settings/class-wp-headless-settings-disable-frontend.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Headless_Jwt_Rest_Api' not found in wp-content/plugins/wp-rest-headless/template-parts/rest_jwt-help.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-rest-headless/includes/class-wp-headless-core.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-rest-headless/includes/jwt-auth/class-wp-headless-jwt-users.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Headless_Rest_Api_Cors' not found in wp-content/plugins/wp-rest-headless/template-parts/request_headers-help.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-rest-headless/includes/security/class-wp-headless-rest-api-nonce.php:52
- > PHP Fatal error
Uncaught Error: Class 'WP_Headless_Settings' not found in wp-content/plugins/wp-rest-headless/includes/settings/class-wp-headless-settings-rest-gutenberg.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: wordpress as a headless cms, rest, headless, headless cms, cms...
wp-rest-headless/wp-rest-headless.php 92% from 13 tests
The main PHP script in "WP Headless CMS Framework" version 1.15 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 261 characters long)
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 detected2,387 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 809 | 1,783 | 2,135 |
Markdown | 1 | 32 | 0 | 168 |
JSON | 3 | 0 | 0 | 84 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 31 | 28.70% |
▷ Public methods | 92 | 85.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 14.81% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
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
PNG images were not found in this plugin