84% cryptum-nft

Code Review | Cryptum NFT

WordPress plugin Cryptum NFT scored84%from 54 tests.

About plugin

  • Plugin page: cryptum-nft
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 21, 2022
  • Latest release: Jun 16, 2023
  • Number of updates: 5
  • Update frequency: every 53.6 days
  • Top authors: victorbfc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.47ms] Passed 4 tests

Server-side resources used by Cryptum NFT
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.32 ▼3.76
Dashboard /wp-admin3.31 ▲0.0143.20 ▼10.83
Posts /wp-admin/edit.php3.36 ▲0.0144.38 ▼0.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.18 ▼12.70
Media Library /wp-admin/upload.php3.23 ▲0.0032.20 ▼2.59

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Cryptum NFT: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.74 ▼0.041.99 ▼0.3040.52 ▼2.27
Dashboard /wp-admin2,215 ▲235.86 ▲0.9896.25 ▼20.6039.36 ▼6.18
Posts /wp-admin/edit.php2,094 ▲52.01 ▼0.0437.64 ▲1.8332.29 ▼4.21
Add New Post /wp-admin/post-new.php1,539 ▲2523.12 ▲5.62659.89 ▼14.1962.10 ▲14.12
Media Library /wp-admin/upload.php1,394 ▲64.17 ▼0.0496.51 ▼6.4942.34 ▼4.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/cryptum-nft/lib/symfony/polyfill-mbstring/bootstrap80.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cryptum-nft/uninstall.php:3

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 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
8 plugin tags: nft, e-commerce, store, crypto, blockchain...

cryptum-nft/cryptum-nft.php 92% from 13 tests

"Cryptum NFT" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin7,370 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
PHP335215556,212
JavaScript833225312
CSS6177243
JSON400234
PO File171106148
YAML5260143
Markdown318038
XML14029
SVG10111

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity28.33
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes211.11%
Methods149
▷ Static methods9865.77%
▷ Public methods12785.23%
▷ Protected methods10.67%
▷ Private methods2114.09%
Functions90
▷ Named functions7886.67%
▷ Anonymous functions1213.33%
Constants20
▷ Global constants945.00%
▷ Class constants1155.00%
▷ Public constants763.64%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin