72% appstore-lookup

Code Review | AppStore Lookup for Wordpress

WordPress plugin AppStore Lookup for Wordpress scored72%from 54 tests.

About plugin

  • Plugin page: appstore-lookup
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: May 12, 2013
  • Latest release: Feb 9, 2017
  • Number of updates: 38
  • Update frequency: every 36.1 days
  • Top authors: AdamDionne (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,508 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.21ms] Passed 4 tests

A check of server-side resources used by AppStore Lookup for Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.38 ▼3.04
Dashboard /wp-admin3.41 ▲0.0747.38 ▼12.61
Posts /wp-admin/edit.php3.52 ▲0.1748.80 ▲3.15
Add New Post /wp-admin/post-new.php5.99 ▲0.1180.18 ▼17.37
Media Library /wp-admin/upload.php3.33 ▲0.1135.06 ▲0.18
AppStore Lookup /wp-admin/options-general.php?page=asl_pluginoptions3.2730.92

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
asl_plugin
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for AppStore Lookup for Wordpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.29 ▼1.271.92 ▲0.0944.14 ▲3.36
Dashboard /wp-admin2,207 ▲255.83 ▼0.0699.71 ▼3.2537.77 ▼9.89
Posts /wp-admin/edit.php2,090 ▼22.00 ▲0.0334.31 ▼0.4434.46 ▲1.09
Add New Post /wp-admin/post-new.php1,536 ▲123.46 ▲0.31625.57 ▲16.3251.18 ▲5.57
Media Library /wp-admin/upload.php1,392 ▲44.26 ▲0.0998.49 ▲2.7542.56 ▼0.07
AppStore Lookup /wp-admin/options-general.php?page=asl_pluginoptions1,7162.0522.6235.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • asl_plugin

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=asl_pluginoptions
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=asl_pluginoptions
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/appstore-lookup/asl-default-data.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/appstore-lookup/asl-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/appstore-lookup/asl-admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === appstore-lookup === )
  • Donate link: Invalid url: ""
The official readme.txt might help

appstore-lookup/asl.php 92% from 13 tests

Analyzing the main PHP file in "AppStore Lookup for Wordpress" version 1.5.1
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("appstore-lookup.php" instead of "asl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin474 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34980474

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.22
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%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
defaults/artwork100.png2.98KB2.96KB▼ 0.75%