78% tatum

Code Review | NFT Maker

WordPress plugin NFT Maker scored78%from 54 tests.

About plugin

  • Plugin page: tatum
  • Plugin version: 2.0.37
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8.2
  • WordPress version: 6.3.1
  • First release: May 13, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 50
  • Update frequency: every 17.7 days
  • Top authors: lukaskotol (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /20,361 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.58MB] [CPU: ▲0.05ms] Passed 4 tests

Analyzing server-side resources used by NFT Maker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6346.42 ▲6.31
Dashboard /wp-admin3.93 ▲0.5854.14 ▼7.63
Posts /wp-admin/edit.php3.98 ▲0.6252.07 ▲4.81
Add New Post /wp-admin/post-new.php6.47 ▲0.5787.51 ▼1.87
Media Library /wp-admin/upload.php3.79 ▲0.5641.31 ▲4.91

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 158 new files
Database: 2 new tables, 8 new options
New tables
wp_tatum_lazy_nft
wp_tatum_prepared_nft
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
tatum_db_version
widget_recent-posts
widget_tatumreact-demo
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for NFT Maker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲10714.37 ▲0.012.02 ▲0.4746.60 ▲5.55
Dashboard /wp-admin2,253 ▲735.65 ▼0.0196.07 ▲10.2942.49 ▲2.00
Posts /wp-admin/edit.php2,154 ▲572.00 ▲0.0133.43 ▼0.5234.56 ▼2.15
Add New Post /wp-admin/post-new.php1,550 ▲2423.40 ▲0.37667.97 ▲7.8453.31 ▼2.37
Media Library /wp-admin/upload.php1,448 ▲454.28 ▲0.01106.43 ▲10.2039.55 ▼4.88

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: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_tatumreact-demo
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 29× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/tatum/inc/base/others/fallback-php-version.php
    • > /wp-content/plugins/tatum/vendor/tatum/utils/src/Service.php
    • > /wp-content/plugins/tatum/vendor/tatum/utils/src/PackageLocalization.php
    • > /wp-content/plugins/tatum/inc/base/Core.php
    • > /wp-content/plugins/tatum/inc/Localization.php
    • > /wp-content/plugins/tatum/inc/view/menu/Page.php
    • > /wp-content/plugins/tatum/inc/base/others/fallback-rest-api.php
    • > /wp-content/plugins/tatum/inc/Assets.php
    • > /wp-content/plugins/tatum/vendor/tatum/utils/src/Localization.php
    • > /wp-content/plugins/tatum/inc/Activator.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/tatum/vendor/tatum/nft-maker/vendor/kornrunner/keccak/test/KeccakTest.php:10
    • > PHP Fatal error
      Trait 'Hathoriel\ftMaker\\Utils\\UtilsProvider' not found in wp-content/plugins/tatum/vendor/tatum/nft-maker/src/Services/SetupService.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/tatum/vendor/kornrunner/keccak/test/KeccakTest.php:10
    • > PHP Fatal error
      Trait 'Hathoriel\ftMaker\\Utils\\UtilsProvider' not found in wp-content/plugins/tatum/vendor/tatum/nft-maker/src/Connectors/DbConnector.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
Attributes that need to be fixed:
  • Donate link: Invalid url: "lukas.kotol@gmail.com"
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

tatum/index.php 92% from 13 tests

Analyzing the main PHP file in "NFT Maker" version 2.0.37
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tatum.php" instead of "index.php")

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 plugin9,505 lines of code in 101 files:
LanguageFilesBlank linesComment linesLines of code
Markdown71,58604,556
PHP667291,6633,744
JSON800813
JavaScript11066269
PO File13536
XML14029
CSS22921
SVG30020
YAML24017

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.04
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces13
Interfaces0
Traits14
Classes37
▷ Abstract classes12.70%
▷ Concrete classes3697.30%
▷ Final classes25.56%
Methods354
▷ Static methods6317.80%
▷ Public methods28881.36%
▷ Protected methods277.63%
▷ Private methods3911.02%
Functions9
▷ Named functions666.67%
▷ Anonymous functions333.33%
Constants36
▷ Global constants1438.89%
▷ Class constants2261.11%
▷ Public constants1254.55%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/header-overview.png7.67KB3.25KB▼ 57.70%
public/assets/tatum.png1.06KB0.43KB▼ 58.87%