84% oneaccount-wp

Code Review | Oneaccount WP

WordPress plugin Oneaccount WP scored 84% from 54 tests.

About plugin

  • Plugin page: oneaccount-wp
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.1
  • WordPress version: 6.3.1
  • First release: May 16, 2021
  • Latest release: May 18, 2021
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: oilastudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.28MB] [CPU: ▼0.51ms] Passed 4 tests

Server-side resources used by Oneaccount WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3143.37 ▲2.61
Dashboard /wp-admin3.61 ▲0.3147.92 ▼1.20
Posts /wp-admin/edit.php3.66 ▲0.3144.60 ▼1.42
Add New Post /wp-admin/post-new.php6.13 ▲0.2486.66 ▼0.53
Media Library /wp-admin/upload.php3.47 ▲0.2435.56 ▲1.10

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 152 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Oneaccount WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲11814.46 ▼0.181.78 ▲0.1444.38 ▼6.74
Dashboard /wp-admin2,212 ▲275.88 ▲0.0295.68 ▼18.3681.77 ▲35.77
Posts /wp-admin/edit.php2,113 ▲452.01 ▲0.0134.51 ▼0.7132.67 ▼2.32
Add New Post /wp-admin/post-new.php1,532 ▲1817.44 ▼0.24688.02 ▲28.8152.37 ▲6.72
Media Library /wp-admin/upload.php1,408 ▲204.19 ▼0.0296.09 ▼2.1870.09 ▲27.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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
Good news, no errors were detected

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
The following issues need your attention
  • 46× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/oneaccount-wp/vendor/guzzlehttp/promises/src/TaskQueue.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/oneaccount-wp/vendor/guzzlehttp/psr7/src/FnStream.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/oneaccount-wp/vendor/psr/http-message/src/ServerRequestInterface.php:43
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/oneaccount-wp/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/oneaccount-wp/vendor/guzzlehttp/psr7/src/CachingStream.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/oneaccount-wp/vendor/guzzlehttp/psr7/src/Request.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/oneaccount-wp/vendor/guzzlehttp/promises/src/RejectedPromise.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/oneaccount-wp/vendor/guzzlehttp/promises/src/Coroutine.php:45
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/oneaccount-wp/vendor/guzzlehttp/psr7/src/BufferStream.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/oneaccount-wp/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: sign up, sign in, 2fa, secure, authentication...

oneaccount-wp/oneaccount.php 92% from 13 tests

The main PHP script in "Oneaccount WP" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("oneaccount-wp.php" instead of "oneaccount.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin12,900 lines of code in 140 files:
LanguageFilesBlank linesComment linesLines of code
PHP1151,8705,6428,916
Markdown131,08403,351
JSON800597
XML10015
Dockerfile18010
make1409
JavaScript1052

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.44
Average class complexity12.57
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces9
Interfaces21
Traits2
Classes78
▷ Abstract classes00.00%
▷ Concrete classes78100.00%
▷ Final classes2126.92%
Methods705
▷ Static methods11316.03%
▷ Public methods58582.98%
▷ Protected methods40.57%
▷ Private methods11616.45%
Functions152
▷ Named functions6442.11%
▷ Anonymous functions8857.89%
Constants56
▷ Global constants11.79%
▷ Class constants5598.21%
▷ Public constants55100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
oneaccount.png1.03KB0.98KB▼ 4.38%