Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼146.75ms] Passed 4 tests
Server-side resources used by Josie API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 38.09 ▲13.03 |
Dashboard /wp-admin | 3.12 ▲0.06 | 39.95 ▼6.10 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 49.17 ▲2.70 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 88.47 ▼582.96 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 35.41 ▼0.65 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 102 new files
Database: no new tables, 2 new options
New WordPress options |
---|
josie_api_cors |
josie_api_max_posts_per_page |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Josie API
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.81 ▲0.30 | 9.97 ▲2.10 | 51.59 ▼6.00 |
Dashboard /wp-admin | 2,973 ▲39 | 5.87 ▼0.05 | 143.95 ▼27.66 | 109.53 ▼10.71 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 66.38 ▼10.30 | 86.43 ▼7.21 |
Add New Post /wp-admin/post-new.php | 1,615 ▲117 | 21.38 ▲2.50 | 288.54 ▼110.20 | 110.12 ▼4.09 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.02 | 165.19 ▼9.46 | 122.20 ▼2.71 |
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 detected upon uninstall: 2 options
- josie_api_max_posts_per_page
- josie_api_cors
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 66× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/josie-api/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/josie-api/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/josie-api/vendor/shelob9/jp-menu-route/functions.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/josie-api/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/josie-api/vendor/composer/installers/tests/Composer/Installers/Test/TestCase.php:21
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/josie-api/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/josie-api/vendor/shelob9/jp-tax-query/functions.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/josie-api/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/josie-api/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/josie-api/vendor/composer/installers/tests/Composer/Installers/Test/MediaWikiInstallerTest.php:8
- > PHP Fatal error
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
5 plugin tags: rest-api, doge, wp-api, cache, json
josie-api/josie-api.php Passed 13 tests
This is the main PHP file of "Josie API" version 0.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
102 characters long description:
Companion for the Josie REST API-powered starter app. Useful tools for any site using the WP REST API.
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
Good job! No executable or dangerous file extensions detected3,747 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 563 | 911 | 2,840 |
JSON | 8 | 4 | 0 | 545 |
Markdown | 6 | 91 | 0 | 316 |
XML | 1 | 2 | 0 | 23 |
JavaScript | 1 | 1 | 0 | 12 |
YAML | 1 | 3 | 0 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 4.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 2 | 3.08% |
▷ Concrete classes | 63 | 96.92% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 3 | 2.17% |
▷ Public methods | 98 | 71.01% |
▷ Protected methods | 30 | 21.74% |
▷ Private methods | 10 | 7.25% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin