84% pointnxt

Code Review | PointNXT

WordPress plugin PointNXT scored84%from 54 tests.

About plugin

  • Plugin page: pointnxt
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Mar 27, 2023
  • Latest release: Mar 27, 2023
  • Number of updates: 9
  • Update frequency: every 2.2 days
  • Top authors: adaptnxt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /113 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.07ms] Passed 4 tests

This is a short check of server-side resources used by PointNXT
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.73 ▲5.01
Dashboard /wp-admin3.32 ▲0.0146.40 ▲1.68
Posts /wp-admin/edit.php3.43 ▲0.0741.73 ▼4.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.35 ▼15.45
Media Library /wp-admin/upload.php3.24 ▲0.0132.49 ▼1.85

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by PointNXT
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲2314.35 ▼0.251.63 ▼0.3443.14 ▲4.28
Dashboard /wp-admin2,218 ▲375.61 ▼0.1384.20 ▼17.1740.51 ▼0.60
Posts /wp-admin/edit.php2,120 ▲201.98 ▲0.0236.41 ▲2.0034.58 ▼1.20
Add New Post /wp-admin/post-new.php1,552 ▲1518.35 ▲0.09608.08 ▼6.2085.64 ▲10.95
Media Library /wp-admin/upload.php1,414 ▲114.18 ▲0.06101.49 ▼2.7343.24 ▼2.06

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Interface 'Pointnxt_Automation' not found in wp-content/plugins/pointnxt/steps/EnableWooCommerceAPI.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Pointnxt_Automation' not found in wp-content/plugins/pointnxt/steps/SendWooCommerceKeys.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Pointnxt_Automation' not found in wp-content/plugins/pointnxt/steps/GenerateWooCommerceKeys.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Pointnxt_Automation' not found in wp-content/plugins/pointnxt/steps/EnsureWooCommerceActive.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pointnxt/pointnxt.php:139
    • > PHP Fatal error
      Uncaught Error: Interface 'Pointnxt_Automation' not found in wp-content/plugins/pointnxt/steps/EnsureWooCommercePlugin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: etsy, walmart, pointnxt, flipkart, amazon...

pointnxt/pointnxt.php Passed 13 tests

This is the main PHP file of "PointNXT" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Helps you easily integrate your WooCommerce store with PointNXT.

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
Success! There were no dangerous files found in this plugin341 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP85019268
JavaScript114361
CSS13012

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.22
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/pointnxtlogo.png44.58KB15.96KB▼ 64.20%