84% nxtbridge-ledger

Code Review | NXTBridge

WordPress plugin NXTBridge scored84%from 54 tests.

About plugin

  • Plugin page: nxtbridge-ledger
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Mar 21, 2017
  • Latest release: Sep 8, 2017
  • Number of updates: 12
  • Update frequency: every 13.9 days
  • Top authors: scor2k (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /646 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.32MB] [CPU: ▼18.39ms] Passed 4 tests

Analyzing server-side resources used by NXTBridge
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0231.57 ▼8.78
Dashboard /wp-admin3.31 ▲0.0145.11 ▼2.74
Posts /wp-admin/edit.php3.37 ▲0.0144.72 ▼5.43
Add New Post /wp-admin/post-new.php4.61 ▼1.2843.35 ▼56.61
Media Library /wp-admin/upload.php3.24 ▲0.0132.27 ▲1.63

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for NXTBridge
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,005 ▲27013.67 ▼0.716.97 ▲5.2141.63 ▼2.20
Dashboard /wp-admin2,209 ▲214.92 ▼0.95102.37 ▼4.1939.43 ▼3.57
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0135.71 ▼2.6533.65 ▼2.20
Add New Post /wp-admin/post-new.php1,536 ▲323.22 ▼0.13570.05 ▼105.0350.31 ▼6.04
Media Library /wp-admin/upload.php1,382 ▼34.30 ▲0.0395.94 ▼8.8842.20 ▼1.27

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nxtbridge-ledger/config.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nxtbridge-ledger/config.php:4

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: assets, nxt, nxter, nxtbridge, nxtbridge-ledger

nxtbridge-ledger/nxtbridge.php 92% from 13 tests

"NXTBridge" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nxtbridge-ledger.php" instead of "nxtbridge.php")

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
No dangerous file extensions were detected3,558 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP4324105775
HTML110108
CSS3033
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity79.00
▷ Minimum class complexity79.00
▷ Maximum class complexity79.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1986.36%
▷ Protected methods00.00%
▷ Private methods313.64%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/nxt-icon-64x64.png3.67KB2.44KB▼ 33.65%
img/nxt-icon-32x32.png1.54KB1.54KB0.00%
img/nxt-icon-menu.png0.90KB0.85KB▼ 5.62%