84% fix-missing-app-id

Code Review | Fix missing property app_id

WordPress plugin Fix missing property app_id scored84%from 54 tests.

About plugin

  • Plugin page: fix-missing-app-id
  • Plugin version: 0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1.1
  • WordPress version: 6.3.1
  • First release: May 28, 2021
  • Latest release: Mar 16, 2023
  • Number of updates: 6
  • Update frequency: every 109.8 days
  • Top authors: iliasvlachos1 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /745 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Fix missing property app_id
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.65 ▼1.83
Dashboard /wp-admin3.32 ▲0.0246.09 ▼1.36
Posts /wp-admin/edit.php3.37 ▲0.0149.80 ▲3.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.37 ▼13.54
Media Library /wp-admin/upload.php3.24 ▲0.0136.35 ▲2.23
Fix missing FB app_id /wp-admin/tools.php?page=fb_app_id_fix3.2130.33

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Fix missing property app_id
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.17 ▼1.254.99 ▲3.1940.64 ▼9.54
Dashboard /wp-admin2,207 ▲225.83 ▲0.75101.45 ▼15.3938.76 ▼6.35
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0041.59 ▲6.1437.34 ▲1.59
Add New Post /wp-admin/post-new.php1,536 ▲2223.19 ▲5.74679.47 ▼43.1558.77 ▲4.90
Media Library /wp-admin/upload.php1,395 ▲44.23 ▲0.0599.74 ▼1.6442.48 ▼0.33
Fix missing FB app_id /wp-admin/tools.php?page=fb_app_id_fix7952.0627.2931.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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 | 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function FBAPPIDFIX_FixMissingPropertyAppID\\add_action() in wp-content/plugins/fix-missing-app-id/fix_missing_property_app_id.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: html head, meta property, app_id, head

fix-missing-app-id/fix_missing_property_app_id.php 85% from 13 tests

The main PHP script in "Fix missing property app_id" version 0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fix-missing-app-id.php" instead of "fix_missing_property_app_id.php")

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 detected64 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1194064

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
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
Namespaces1
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%
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
PNG images were not found in this plugin