68% mobile-app-dashboard-custom-fields-json-api

Code Review | Mobile APP Dashboard Custom Fields Json API

WordPress plugin Mobile APP Dashboard Custom Fields Json API scored68%from 54 tests.

About plugin

  • Plugin page: mobile-app-dashbo...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Feb 21, 2016
  • Latest release: Dec 30, 2018
  • Number of updates: 6
  • Update frequency: every 174.5 days
  • Top authors: mainsufian (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,936 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.93MB] [CPU: ▼35.97ms] Passed 4 tests

This is a short check of server-side resources used by Mobile APP Dashboard Custom Fields Json API
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.09 ▼2.03
Dashboard /wp-admin3.02 ▼0.2926.55 ▼21.32
Posts /wp-admin/edit.php3.02 ▼0.3424.94 ▼26.76
Add New Post /wp-admin/post-new.php3.02 ▼2.8727.34 ▼76.95
Media Library /wp-admin/upload.php3.02 ▼0.2119.35 ▼18.85
Add New /wp-admin/post-new.php?post_type=custom_json_api3.0223.60
Custom Fields API /wp-admin/edit.php?post_type=custom_json_api3.0224.41

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mobile APP Dashboard Custom Fields Json API
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.35 ▲0.061.89 ▲0.0744.11 ▼0.95
Dashboard /wp-admin2,230 ▲535.54 ▼0.0989.65 ▼6.0540.36 ▼5.16
Posts /wp-admin/edit.php2,138 ▲382.01 ▲0.0340.13 ▲4.4335.49 ▲0.49
Add New Post /wp-admin/post-new.php1,560 ▲3422.85 ▼0.16623.46 ▼77.6460.81 ▼0.51
Media Library /wp-admin/upload.php1,435 ▲384.27 ▲0.0196.12 ▼12.3341.73 ▼8.05
Add New /wp-admin/post-new.php?post_type=custom_json_api1,4432.5247.7748.61
APP Configurator /wp-admin/options-general.php?page=APP Configurator9271.7027.1829.66
Custom Fields API /wp-admin/edit.php?post_type=custom_json_api1,1051.9631.3332.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=custom_json_api
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/mobile-app-dashboard-custom-fields-json-api/include/custom_json_api_single.php:25
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/mobile-app-dashboard-custom-fields-json-api/include/custom_json_api_single.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Please fix this invalid URI: "#"
You can take inspiration from this readme.txt

mobile-app-dashboard-custom-fields-json-api/appconfigurator.php 85% from 13 tests

Analyzing the main PHP file in "Mobile APP Dashboard Custom Fields Json API" version 1.1
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("mobile-app-dashboard-custom-fields-json-api.php" instead of "appconfigurator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected333 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP31221190
CSS111118
JavaScript11125

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/mail.png6.32KB4.25KB▼ 32.84%
img/web.png10.10KB6.15KB▼ 39.16%
img/calendar.png7.59KB4.95KB▼ 34.77%
img/text.png2.11KB2.05KB▼ 2.64%
img/trash.png1.50KB1.55KB0.00%