88% app-links

Code Review | App Links

WordPress plugin App Links scored 88% from 54 tests.

About plugin

  • Plugin page: app-links
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.3
  • WordPress version: 5.9.2
  • First release: May 2, 2014
  • Latest release: May 2, 2014
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: MikevHoenselaar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,194 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼286.94ms] Passed 4 tests

A check of server-side resources used by App Links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0761.65 ▲4.39
Dashboard /wp-admin3.50 ▲0.0944.12 ▼45.10
Posts /wp-admin/edit.php3.73 ▲0.09104.48 ▲64.15
Add New Post /wp-admin/post-new.php6.96 ▼0.01125.64 ▼1,125.77
Media Library /wp-admin/upload.php3.38 ▲0.0849.40 ▲18.71
App Links /wp-admin/tools.php?page=al_settings3.3533.53

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: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for App Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲5116.04 ▲0.015.73 ▼0.282.74 ▲0.07
Dashboard /wp-admin2,902 ▲416.18 ▼0.15157.35 ▲18.14163.66 ▲3.62
Posts /wp-admin/edit.php2,695 ▲113.31 ▲0.0884.11 ▼3.75240.24 ▲97.47
Add New Post /wp-admin/post-new.php1,667 ▲616.37 ▲0.34408.74 ▼12.53181.82 ▲20.41
Media Library /wp-admin/upload.php1,708 ▲106.03 ▲0.52143.66 ▲1.99185.83 ▲5.82
App Links /wp-admin/tools.php?page=al_settings1,1694.72100.85168.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
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 plugin_dir_url() in wp-content/plugins/app-links/app-links.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/tools.php?page=al_settings
    • > Network (severe)
    https://google-code-prettify.googlecode.com/svn/loader/prettify.css - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === app-links === )
The official readme.txt might help

app-links/app-links.php Passed 13 tests

"App Links" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
118 characters long description:
Facebook introduced App Links on F8 in april 2014. With this WordPress plugin you can add these App Links really easy.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected641 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP2111173389
JavaScript4157141
CSS2213111

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity38.50
▷ Minimum class complexity32.00
▷ Maximum class complexity45.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin