10% simpleapplinks

Code Review | SimpleAppLinks

WordPress plugin SimpleAppLinks scored10%from 54 tests.

About plugin

  • Plugin page: simpleapplinks
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Oct 22, 2014
  • Latest release: Mar 30, 2018
  • Number of updates: 12
  • Update frequency: every 104.6 days
  • Top authors: ryomatsu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,395 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/simpleapplinks/simpleapplinks.php+210
    Undefined variable: installed_ver

Server metrics [RAM: ▼0.56MB] [CPU: ▼33.32ms] Passed 4 tests

An overview of server-side resources used by SimpleAppLinks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3940.71 ▲5.49
Dashboard /wp-admin3.38 ▲0.0826.02 ▼26.08
Posts /wp-admin/edit.php3.38 ▲0.0328.88 ▼19.60
Add New Post /wp-admin/post-new.php3.38 ▼2.5026.23 ▼75.64
Media Library /wp-admin/upload.php3.38 ▲0.1524.43 ▼11.94
SimpleAppLinks /wp-admin/options-general.php?page=simpleapplinks-settings3.3824.98

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables
wp_simpleapplinks_cache
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
sal_db_version
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for SimpleAppLinks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.26 ▼1.131.70 ▼0.1137.86 ▼4.36
Dashboard /wp-admin2,210 ▲214.86 ▼0.11137.59 ▲32.1239.02 ▼4.93
Posts /wp-admin/edit.php2,090 ▼22.02 ▼0.0139.00 ▼3.0934.42 ▼2.57
Add New Post /wp-admin/post-new.php1,532 ▲1323.33 ▲0.12582.03 ▼100.1651.40 ▼13.04
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.0896.12 ▼13.3740.19 ▼6.29
SimpleAppLinks /wp-admin/options-general.php?page=simpleapplinks-settings8002.0622.5025.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • 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 tables detected upon uninstall: 1 table
    • wp_simpleapplinks_cache
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • sal_db_version
    • 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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simpleapplinks-settings
    • > 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/simpleapplinks/simpleapplinks.php:40

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (display Android and iOS app link)
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

simpleapplinks/simpleapplinks.php Passed 13 tests

The main PHP file in "SimpleAppLinks" ver. 0.4 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
add link to apps in your blog post.

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
Success! There were no dangerous files found in this plugin1,943 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22763041,799
CSS118985
PO File1121642
JavaScript10013
Markdown1304

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity124.67
▷ Minimum class complexity45.00
▷ Maximum class complexity198.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods118
▷ Static methods10.85%
▷ Public methods10286.44%
▷ Protected methods1613.56%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants24
▷ Global constants2187.50%
▷ Class constants312.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.94KB12.08KB▼ 60.98%
images/wordpress-logo.png17.97KB9.60KB▼ 46.57%