68% app-la-carte

Code Review | App La Carte - Apps made to order

WordPress plugin App La Carte - Apps made to order scored68%from 54 tests.

About plugin

  • Plugin page: app-la-carte
  • Plugin version: 1.0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-3.2.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2013
  • Latest release: Sep 13, 2013
  • Number of updates: 32
  • Update frequency: every 7.2 days
  • Top authors: applacarte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,303 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼35.19ms] Passed 4 tests

Server-side resources used by App La Carte - Apps made to order
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.97 ▼2.75
Dashboard /wp-admin2.99 ▼0.3122.84 ▼30.04
Posts /wp-admin/edit.php2.99 ▼0.3624.00 ▼27.79
Add New Post /wp-admin/post-new.php2.99 ▼2.8923.73 ▼71.39
Media Library /wp-admin/upload.php2.99 ▼0.2323.60 ▼11.53
App La Carte settings /wp-admin/options-general.php?page=applacarte_wp_options3.0024.32

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for App La Carte - Apps made to order
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.65 ▼0.956.05 ▲4.2141.18 ▼6.75
Dashboard /wp-admin2,210 ▲254.86 ▼1.16111.36 ▲3.9041.50 ▼1.05
Posts /wp-admin/edit.php2,104 ▲122.09 ▲0.0839.81 ▼0.7134.58 ▼3.33
Add New Post /wp-admin/post-new.php1,534 ▲123.08 ▼0.11680.68 ▲4.1254.32 ▼7.81
Media Library /wp-admin/upload.php1,400 ▲154.13 ▼0.14114.99 ▲4.6446.57 ▲4.54
App La Carte settings /wp-admin/options-general.php?page=applacarte_wp_options8432.0726.8426.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > 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
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=applacarte_wp_options
    • > 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.
    • > GET request to /wp-admin/options-general.php?page=applacarte_wp_options
    • > Notice in wp-content/plugins/app-la-carte/applacarte.php+92
    Undefined index: alc_api_hidden
    • > GET request to /wp-admin/options-general.php?page=applacarte_wp_options
    • > Notice in wp-content/plugins/app-la-carte/applacarte.php+128
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/app-la-carte/api/comments.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/app-la-carte/applacarte.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_ALC_API_Version() in wp-content/plugins/app-la-carte/api/api_info.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/app-la-carte/api/search.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/app-la-carte/api/post_comment.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/app-la-carte/api/article_details.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/app-la-carte/api/articles.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/app-la-carte/api/post_comment_form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/app-la-carte/api/latest_articles.php:7

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (15 tag instead of maximum 10)
Please take inspiration from this readme.txt

app-la-carte/applacarte.php 85% from 13 tests

Analyzing the main PHP file in "App La Carte - Apps made to order" version 1.0.5.1
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("app-la-carte.php" instead of "applacarte.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 430 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
Everything looks great! No dangerous files found in this plugin536 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10266110536

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected