83% woo-lock-downloads-to-ip

Code Review | Woo Lock Downloads to IP

WordPress plugin Woo Lock Downloads to IP scored83%from 54 tests.

About plugin

  • Plugin page: woo-lock-download...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.5
  • WordPress version: 6.3.1
  • First release: Feb 14, 2014
  • Latest release: Aug 28, 2020
  • Number of updates: 8
  • Update frequency: every 298.4 days
  • Top authors: aman086 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,683 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.26ms] Passed 4 tests

Server-side resources used by Woo Lock Downloads to IP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.44 ▼5.17
Dashboard /wp-admin3.36 ▲0.0149.54 ▼17.52
Posts /wp-admin/edit.php3.41 ▲0.0551.62 ▼2.25
Add New Post /wp-admin/post-new.php5.96 ▲0.0798.31 ▼8.09
Media Library /wp-admin/upload.php3.28 ▲0.0541.71 ▲3.04

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Woo Lock Downloads to IP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.31 ▼0.061.86 ▼0.0743.74 ▼1.31
Dashboard /wp-admin2,191 ▲115.56 ▼0.1185.63 ▼9.5639.20 ▼2.71
Posts /wp-admin/edit.php2,105 ▲52.02 ▼0.0139.17 ▼1.3534.65 ▲0.35
Add New Post /wp-admin/post-new.php1,549 ▲2323.60 ▲6.02610.31 ▼70.1363.21 ▲5.04
Media Library /wp-admin/upload.php1,402 ▲24.29 ▲0.07100.70 ▼15.8745.77 ▼2.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-lock-downloads-to-ip/woo-lock-downloads-to-ip.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: woocommerce, woo lock, woo iplock, ecommerce, lock...

woo-lock-downloads-to-ip/woo-lock-downloads-to-ip.php 77% from 13 tests

The main file in "Woo Lock Downloads to IP" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin197 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP210190182
JavaScript116415

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin