10% doolox-node

Code Review | Doolox Node

WordPress plugin Doolox Node scored 10% from 54 tests.

About plugin

  • Plugin page: doolox-node
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9.1
  • WordPress version: 5.8.1
  • First release: Jan 31, 2014
  • Latest release: Jun 15, 2014
  • Number of updates: 20
  • Update frequency: every 6.7 days
  • Top authors: tpiha (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 915 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/doolox-node/phpseclib/Crypt/RSA.php+247
    Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_RSA has a deprecated constructor

Server metrics [RAM: ▼1.17MB] [CPU: ▼205.46ms] Passed 4 tests

An overview of server-side resources used by Doolox Node
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.46 ▼0.389.15 ▼31.40
Dashboard /wp-admin2.48 ▼0.588.50 ▼50.77
Posts /wp-admin/edit.php2.48 ▼0.638.38 ▼51.27
Add New Post /wp-admin/post-new.php2.48 ▼2.967.68 ▼686.59
Media Library /wp-admin/upload.php2.48 ▼0.538.37 ▼33.19
Doolox /wp-admin/options-general.php?page=doolox-settings2.488.78

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Doolox Node
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,721 ▲14915.80 ▲0.1510.05 ▲0.2253.89 ▼6.86
Dashboard /wp-admin2,988 ▲545.96 ▼0.02163.57 ▼3.74121.69 ▲0.41
Posts /wp-admin/edit.php2,757 ▲182.85 ▲0.1378.86 ▲0.20101.32 ▲4.09
Add New Post /wp-admin/post-new.php1,626 ▼5721.42 ▲5.20344.19 ▼105.05121.55 ▼0.06
Media Library /wp-admin/upload.php1,766 ▼414.99 ▼0.05181.86 ▼2.49127.70 ▼0.24
Doolox /wp-admin/options-general.php?page=doolox-settings1,0642.2471.7381.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/doolox-node/phpseclib/Crypt/RSA.php+247
    Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_RSA has a deprecated constructor

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=doolox-settings
    • > Deprecated in wp-content/plugins/doolox-node/phpseclib/Crypt/RSA.php+247
    Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_RSA has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=doolox-settings
    • > Deprecated in wp-content/plugins/doolox-node/phpseclib/Crypt/Hash.php+83
    Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_Hash has a deprecated constructor

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/doolox-node/doolox.php:168

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: wordpress manager, doolox, wordpress, remote login

doolox-node/doolox.php 85% from 13 tests

The main file in "Doolox Node" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("doolox-node.php" instead of "doolox.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 259 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin16,988 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP232,93610,91916,965
Markdown19023

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 168)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity132.81
▷ Minimum class complexity1.00
▷ Maximum class complexity533.00
Average method complexity6.78
▷ Minimum method complexity1.00
▷ Maximum method complexity168.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods479
▷ Static methods00.00%
▷ Public methods479100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants221
▷ Global constants221100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin