80% cryptocurrency-nft

Code Review | Cryptocurrency NFT

WordPress plugin Cryptocurrency NFT scored80%from 54 tests.

About plugin

  • Plugin page: cryptocurrency-nft
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 8, 2022
  • Latest release: Jun 14, 2023
  • Number of updates: 28
  • Update frequency: every 15.5 days
  • Top authors: lightimagemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,341 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.22MB] [CPU: ▼37.40ms] Passed 4 tests

Analyzing server-side resources used by Cryptocurrency NFT
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7114.55 ▼22.29
Dashboard /wp-admin2.80 ▼0.5118.16 ▼27.50
Posts /wp-admin/edit.php2.80 ▼0.5621.02 ▼24.07
Add New Post /wp-admin/post-new.php2.80 ▼3.0918.96 ▼75.72
Media Library /wp-admin/upload.php2.80 ▼0.4318.07 ▼16.01

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_nft
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Cryptocurrency NFT
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.44 ▲0.072.00 ▲0.4737.41 ▼0.59
Dashboard /wp-admin2,195 ▲185.65 ▼0.0189.74 ▼7.5936.24 ▼11.30
Posts /wp-admin/edit.php2,103 ▲212.02 ▲0.0342.34 ▲3.5441.34 ▲6.51
Add New Post /wp-admin/post-new.php1,526 ▼223.43 ▲0.57686.50 ▲48.2052.76 ▼0.23
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0692.95 ▼19.7241.37 ▼4.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'CryptocurrencyNft' does not have a method 'cryptonft_register_taxonomy'
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_nft
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% 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
These attributes need your attention: You can look at the official readme.txt

cryptocurrency-nft/cryptocurrency-nft.php Passed 13 tests

"Cryptocurrency NFT" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
112 characters long description:
Displays a list of cryptocurrency NFT sites in your WordPress sidebar or any widget area of your wordpress blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP279117112

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin