78% nicolasoft-digital-data-seller

Code Review | NICOLASOFT Digital Data Seller

WordPress plugin NICOLASOFT Digital Data Seller scored78%from 54 tests.

About plugin

  • Plugin page: nicolasoft-digita...
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.0
  • WordPress version: 6.3.1
  • First release: Feb 15, 2017
  • Latest release: May 20, 2020
  • Number of updates: 36
  • Update frequency: every 33.1 days
  • Top authors: nicolasoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /697 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼3.80MB] [CPU: ▼840,618.18ms] Passed 4 tests

Analyzing server-side resources used by NICOLASOFT Digital Data Seller
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.78 ▼16.4943.20 ▼3,362,460.72
Dashboard /wp-admin3.78 ▲0.4451.37 ▼3.97
Posts /wp-admin/edit.php3.90 ▲0.5054.10 ▼0.00
Add New Post /wp-admin/post-new.php6.37 ▲0.4492.15 ▼8.01
Media Library /wp-admin/upload.php3.71 ▲0.4338.51 ▲1.25
How to use /wp-admin/admin.php?page=nsddsp_submenu_manual3.6733.95
File list /wp-admin/edit.php?post_type=nsddsp_post_downfile3.7539.11
Setting /wp-admin/admin.php?page=nsddsp_submenu_setting3.6839.73
IPN data list /wp-admin/edit.php?post_type=nsddsp_post_ipndata3.7544.26

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

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

Browser metrics Passed 4 tests

Checking browser requirements for NICOLASOFT Digital Data Seller
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.15 ▼0.121.62 ▲0.0838.53 ▼1.91
Dashboard /wp-admin2,227 ▲475.56 ▼0.1185.62 ▼4.7241.79 ▼0.70
Posts /wp-admin/edit.php2,138 ▲352.00 ▼0.0338.76 ▼2.5435.53 ▲2.05
Add New Post /wp-admin/post-new.php1,558 ▲3023.31 ▲0.31651.06 ▼40.6661.60 ▼2.95
Media Library /wp-admin/upload.php1,438 ▲384.22 ▲0.03106.98 ▼6.1447.13 ▲1.37
How to use /wp-admin/admin.php?page=nsddsp_submenu_manual8142.0322.9325.79
File list /wp-admin/edit.php?post_type=nsddsp_post_downfile1,1101.9931.2630.82
Setting /wp-admin/admin.php?page=nsddsp_submenu_setting1,1282.0323.6138.89
IPN data list /wp-admin/edit.php?post_type=nsddsp_post_ipndata1,1231.9433.2929.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 44 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nsddsp_post_ipndata
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 44 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=nsddsp_post_ipndata
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nicolasoft-digital-data-seller/includes/ns_digital_data_seller_plugin_post_type.php:271
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nicolasoft-digital-data-seller/includes/ns_digital_data_seller_plugin_menu.php:410
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nicolasoft-digital-data-seller/ns_digital_data_seller_plugin.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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
6 plugin tags: data, button, ipn, seller, paypal...

nicolasoft-digital-data-seller/ns_digital_data_seller_plugin.php 77% from 13 tests

The entry point to "NICOLASOFT Digital Data Seller" version 1.0.11 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 223 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nicolasoft-digital-data-seller.php" instead of "ns_digital_data_seller_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,371 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP52442772,013
PO File1207458358

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions55
▷ Named functions5498.18%
▷ Anonymous functions11.82%
Constants29
▷ Global constants29100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin