78% chainwire-integration

Code Review | Chainwire Integration

WordPress plugin Chainwire Integration scored78%from 54 tests.

About plugin

  • Plugin page: chainwire-integra...
  • Plugin version: 1.0.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 20, 2020
  • Latest release: Mar 21, 2023
  • Number of updates: 20
  • Update frequency: every 47.2 days
  • Top authors: cracsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,773 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Chainwire Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.25 ▼2.91
Dashboard /wp-admin3.33 ▲0.0245.09 ▼2.66
Posts /wp-admin/edit.php3.38 ▲0.0248.68 ▲6.87
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.16 ▼5.96
Media Library /wp-admin/upload.php3.25 ▲0.0234.74 ▲1.26
Chainwire /wp-admin/options-general.php?page=chain-wire3.3233.41

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Chainwire Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲13814.11 ▼0.285.22 ▲3.0740.22 ▼8.51
Dashboard /wp-admin2,215 ▲275.16 ▼0.73101.61 ▼2.9639.10 ▼0.94
Posts /wp-admin/edit.php2,104 ▲182.29 ▲0.3037.80 ▲4.0234.29 ▼2.44
Add New Post /wp-admin/post-new.php1,525 ▲1123.72 ▲6.12700.57 ▲16.6058.48 ▲4.93
Media Library /wp-admin/upload.php1,400 ▲124.38 ▲0.16113.24 ▲6.3647.33 ▲3.10
Chainwire /wp-admin/options-general.php?page=chain-wire1,6592.3551.9234.89

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/chainwire-integration/public/partials/chainwire-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/chainwire-integration/admin/partials/chainwire-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: newswire, cryptocurrency, blockchain, wire, crypto

chainwire-integration/chain-wire.php 85% from 13 tests

The principal PHP file in "Chainwire Integration" v. 1.0.15 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chainwire-integration.php" instead of "chain-wire.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,420 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP142757291,370
JavaScript385536
CSS32814

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity17.88
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity2.99
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods69
▷ Static methods34.35%
▷ Public methods3855.07%
▷ Protected methods2637.68%
▷ Private methods57.25%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants37
▷ Global constants12.70%
▷ Class constants3697.30%
▷ Public constants36100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin