84% josie-api

Code Review | Josie API

WordPress plugin Josie API scored 84% from 54 tests.

About plugin

  • Plugin page: josie-api
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 5.8.1
  • First release: Nov 4, 2014
  • Latest release: Nov 8, 2014
  • Number of updates: 9
  • Update frequency: every 1.1 days
  • Top authors: Shelob9 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 893 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1838.09 ▲13.03
Dashboard /wp-admin3.12 ▲0.0639.95 ▼6.10
Posts /wp-admin/edit.php3.23 ▲0.1249.17 ▲2.70
Add New Post /wp-admin/post-new.php5.48 ▲0.0488.47 ▼582.96
Media Library /wp-admin/upload.php3.06 ▲0.0635.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.81 ▲0.309.97 ▲2.1051.59 ▼6.00
Dashboard /wp-admin2,973 ▲395.87 ▼0.05143.95 ▼27.66109.53 ▼10.71
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0066.38 ▼10.3086.43 ▼7.21
Add New Post /wp-admin/post-new.php1,615 ▲11721.38 ▲2.50288.54 ▼110.20110.12 ▼4.09
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.02165.19 ▼9.46122.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

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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.29
Average class complexity4.51
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
▷ Abstract classes23.08%
▷ Concrete classes6396.92%
▷ Final classes00.00%
▷ Static methods32.17%
▷ Public methods9871.01%
▷ Protected methods3021.74%
▷ Private methods107.25%
▷ Named functions1381.25%
▷ Anonymous functions318.75%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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