84% temple-lock

Code Review | Temple - Web3 Memberships

WordPress plugin Temple - Web3 Memberships scored84%from 54 tests.

About plugin

  • Plugin page: temple-lock
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.9
  • WordPress version: 6.3.1
  • First release: Dec 3, 2021
  • Latest release: Feb 16, 2022
  • Number of updates: 22
  • Update frequency: every 3.4 days
  • Top authors: templeweb3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,248 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.00ms] Passed 4 tests

This is a short check of server-side resources used by Temple - Web3 Memberships
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.70 ▼2.39
Dashboard /wp-admin3.44 ▲0.0949.10 ▼18.10
Posts /wp-admin/edit.php3.55 ▲0.1949.99 ▲2.82
Add New Post /wp-admin/post-new.php6.04 ▲0.16101.76 ▼3.97
Media Library /wp-admin/upload.php3.36 ▲0.1338.65 ▲0.45

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Temple - Web3 Memberships
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.24 ▼0.321.74 ▲0.0143.79 ▲2.48
Dashboard /wp-admin2,208 ▲345.52 ▼0.1588.81 ▲2.4641.25 ▼4.52
Posts /wp-admin/edit.php2,116 ▲131.98 ▼0.0534.66 ▲0.8233.52 ▼7.06
Add New Post /wp-admin/post-new.php6,196 ▲4,67023.47 ▲0.35920.73 ▲225.4655.96 ▲2.43
Media Library /wp-admin/upload.php1,416 ▲164.19 ▲0.00111.49 ▲0.6750.29 ▲5.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\BaseController' not found in wp-content/plugins/temple-lock/includes/Admin/Settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/temple-lock/templates/admin/temple.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\BaseController' not found in wp-content/plugins/temple-lock/includes/Admin/AdminCallback.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\BaseController' not found in wp-content/plugins/temple-lock/includes/ContentLock.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in temple-lock/assets to your readme.txt
Please take inspiration from this readme.txt

temple-lock/temple-lock.php 92% from 13 tests

This is the main PHP file of "Temple - Web3 Memberships" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Git Repository: There should be no Git repositories present in your plugin

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 plugin1,005 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP19214437979
JSON20026

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity15.10
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.01
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods71
▷ Static methods2129.58%
▷ Public methods6895.77%
▷ Protected methods00.00%
▷ Private methods34.23%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin