94% wp-lookout

Code Review | WP Lookout - Theme & Plugin Update Notifications

WordPress plugin WP Lookout - Theme & Plugin Update Notifications scored 94% from 54 tests.

About plugin

  • Plugin page: wp-lookout
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 5.8.1
  • First release: Aug 10, 2020
  • Latest release: Aug 19, 2021
  • Number of updates: 30
  • Update frequency: every 12.6 days
  • Top authors: ChrisHardie (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 650 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼175.68ms] Passed 4 tests

This is a short check of server-side resources used by WP Lookout - Theme & Plugin Update Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1348.69 ▲25.04
Dashboard /wp-admin3.08 ▲0.0252.53 ▲5.02
Posts /wp-admin/edit.php3.13 ▲0.0249.87 ▼2.87
Add New Post /wp-admin/post-new.php5.44 ▲0.0096.90 ▼705.69
Media Library /wp-admin/upload.php3.02 ▲0.0236.10 ▲0.82
WP Lookout /wp-admin/options-general.php?page=wp_lookout2.9930.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Lookout - Theme & Plugin Update Notifications
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,732 ▲16016.22 ▲0.6210.09 ▼0.7548.62 ▼2.57
Dashboard /wp-admin2,975 ▲445.87 ▼0.24147.88 ▼12.16123.66 ▼10.10
Posts /wp-admin/edit.php2,744 ▲52.73 ▲0.0170.43 ▲1.28105.04 ▲5.08
Add New Post /wp-admin/post-new.php1,686 ▲318.80 ▲0.46382.49 ▼24.13118.00 ▼2.92
Media Library /wp-admin/upload.php1,812 ▲55.03 ▲0.01153.37 ▼4.02140.92 ▲18.20
WP Lookout /wp-admin/options-general.php?page=wp_lookout1,1082.0560.5379.70

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 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-lookout/includes/class-config.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-lookout/wp-lookout.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-lookout/includes/class-sender.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: plugin updates, notifications, email, updates, theme updates...

wp-lookout/wp-lookout.php 92% from 13 tests

The main file in "WP Lookout - Theme & Plugin Update Notifications" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin270 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP478109270

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity9.67
▷ Minimum class complexity4.00
▷ Maximum class complexity20.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin