72% access-by-nft

Code Review | Web3devs Access by NFT Plugin

WordPress plugin Web3devs Access by NFT Plugin scored72%from 54 tests.

About plugin

  • Plugin page: access-by-nft
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2022
  • Latest release: Dec 27, 2022
  • Number of updates: 2
  • Update frequency: every 9.5 days
  • Top authors: web3devs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /144 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.08MB] [CPU: ▼5.00ms] Passed 4 tests

This is a short check of server-side resources used by Web3devs Access by NFT Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.18 ▼3.02
Dashboard /wp-admin3.35 ▲0.0062.63 ▼4.68
Posts /wp-admin/edit.php3.40 ▲0.0454.52 ▲6.51
Add New Post /wp-admin/post-new.php5.49 ▼0.4077.70 ▼18.80
Media Library /wp-admin/upload.php3.27 ▲0.0450.04 ▲11.16
Access by NFT /wp-admin/admin.php?page=web3devs-abnft3.2634.13
Settings /wp-admin/admin.php?page=web3devs-abnft-settings3.2935.46

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Web3devs Access by NFT Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4514.34 ▼0.321.65 ▼0.2844.91 ▼1.96
Dashboard /wp-admin2,222 ▲485.62 ▼0.0291.45 ▲1.1440.83 ▼1.90
Posts /wp-admin/edit.php2,127 ▲271.97 ▼0.0439.30 ▲2.3436.99 ▲1.22
Add New Post /wp-admin/post-new.php6,257 ▲4,73125.88 ▲2.46925.84 ▲245.2370.13 ▲11.49
Media Library /wp-admin/upload.php1,430 ▲334.33 ▲0.1399.55 ▼3.7944.17 ▼2.83
Access by NFT /wp-admin/admin.php?page=web3devs-abnft8341.9928.6127.37
Settings /wp-admin/admin.php?page=web3devs-abnft-settings1,0722.1323.4825.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=web3devs-abnft-settings
    • > Warning in wp-admin/includes/template.php+1771
    call_user_func() expects parameter 1 to be a valid callback, class 'Web3devs_ABNFT_Admin' does not have a method 'web3devs_abnft_display_api_key'

SRP 0% 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/access-by-nft/admin/partials/web3devs-abnft-admin-display.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: coins in wp-content/plugins/access-by-nft/admin/partials/web3devs-abnft-admin-settings-display.php on line 38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/access-by-nft/admin/partials/web3devs-abnft-admin-settings-display.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Requires php: Invalid plugin version format
You can look at the official readme.txt

access-by-nft/web3devs-abnft.php 85% from 13 tests

"Web3devs Access by NFT Plugin" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("access-by-nft.php" instead of "web3devs-abnft.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin940 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.86
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods23.45%
▷ Public methods4068.97%
▷ Protected methods00.00%
▷ Private methods1831.03%
▷ Named functions375.00%
▷ Anonymous functions125.00%
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings