10% octillion-widget-for-btc-e-pamm-account

Code Review | Octillion Widget for BTC-e PAMM

WordPress plugin Octillion Widget for BTC-e PAMM scored 10% from 54 tests.

About plugin

  • Plugin page: octillion-widget-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 5.8.1
  • First release: Oct 13, 2015
  • Latest release: Nov 19, 2015
  • Number of updates: 11
  • Update frequency: every 3.4 days
  • Top authors: ihomp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 744 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/octillion-widget-for-btc-e-pamm-account/octillion_pamm.php+157
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▼0.00MB] [CPU: ▼136.75ms] Passed 4 tests

Analyzing server-side resources used by Octillion Widget for BTC-e PAMM
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.62 ▲9.55
Dashboard /wp-admin3.06 ▲0.0053.30 ▲14.56
Posts /wp-admin/edit.php3.11 ▲0.0051.22 ▲2.26
Add New Post /wp-admin/post-new.php5.42 ▼0.0291.73 ▼567.50
Media Library /wp-admin/upload.php3.00 ▲0.0034.66 ▲8.70

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Octillion Widget for BTC-e PAMM
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.25 ▲0.2910.31 ▲2.5949.09 ▼4.12
Dashboard /wp-admin2,989 ▲585.87 ▼0.14161.01 ▲9.67107.99 ▼25.65
Posts /wp-admin/edit.php2,739 ▼02.82 ▲0.0078.32 ▲4.7688.18 ▼10.79
Add New Post /wp-admin/post-new.php1,581 ▼10217.97 ▼0.16428.23 ▲31.64122.34 ▲6.61
Media Library /wp-admin/upload.php1,807 ▼05.01 ▲0.00188.63 ▲24.98144.81 ▲14.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/octillion-widget-for-btc-e-pamm-account/octillion_pamm.php on line 157

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: You can take inspiration from this readme.txt

octillion-widget-for-btc-e-pamm-account/octillion_pamm.php 92% from 13 tests

The main PHP script in "Octillion Widget for BTC-e PAMM" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("octillion-widget-for-btc-e-pamm-account.php" instead of "octillion_pamm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin165 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22227165

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions3
▷ Named functions3100.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
No PNG files were detected