78% wp-app-json

Code Review | WP APP JSON

WordPress plugin WP APP JSON scored78%from 54 tests.

About plugin

  • Plugin page: wp-app-json
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2014
  • Latest release: Mar 20, 2014
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: zxial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,297 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.46ms] Passed 4 tests

This is a short check of server-side resources used by WP APP JSON
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.45 ▼3.77
Dashboard /wp-admin3.31 ▲0.0149.47 ▼5.18
Posts /wp-admin/edit.php3.36 ▲0.0149.33 ▼2.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.37 ▲3.22
Media Library /wp-admin/upload.php3.24 ▲0.0139.56 ▲1.64

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP APP JSON
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.29 ▼1.022.10 ▲0.2241.79 ▲0.48
Dashboard /wp-admin2,210 ▲244.85 ▼0.08108.62 ▼9.6439.90 ▼0.78
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0239.27 ▼1.2335.08 ▲0.83
Add New Post /wp-admin/post-new.php1,536 ▲323.16 ▲0.21605.89 ▼48.1557.97 ▲7.71
Media Library /wp-admin/upload.php1,383 ▼54.16 ▼0.0799.79 ▼10.0744.17 ▼4.29
WP APP JSON /wp-admin/wp-app-json-options.php260.440.1114.81

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: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-app-json/wp-app-json.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/wp-app-json-options.php
    • > Network (severe)
    wp-admin/wp-app-json-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

wp-app-json/wp-app-json.php 92% from 13 tests

The primary PHP file in "WP APP JSON" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 503 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin266 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23623201
CSS110365

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity2.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods250.00%
▷ Protected methods00.00%
▷ Private methods250.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected