77% beononline

Code Review | Be-online

WordPress plugin Be-online scored77%from 54 tests.

About plugin

  • Plugin page: beononline
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 15, 2022
  • Latest release: Oct 26, 2022
  • Number of updates: 49
  • Update frequency: every 1.6 days
  • Top authors: nevenne (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /650 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.26ms] Passed 4 tests

This is a short check of server-side resources used by Be-online
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.18 ▲7.82
Dashboard /wp-admin3.32 ▲0.0246.71 ▲1.93
Posts /wp-admin/edit.php3.37 ▲0.0144.88 ▼0.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.08 ▲3.79
Media Library /wp-admin/upload.php3.24 ▲0.0131.61 ▼3.82

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Be-online
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.07 ▼0.581.71 ▲0.0543.76 ▲2.57
Dashboard /wp-admin2,211 ▲315.64 ▼0.0288.18 ▲1.0844.15 ▲4.88
Posts /wp-admin/edit.php2,113 ▲132.02 ▲0.0736.73 ▲0.7033.52 ▼4.18
Add New Post /wp-admin/post-new.php1,548 ▲2218.24 ▼4.71647.39 ▲29.2469.21 ▲12.41
Media Library /wp-admin/upload.php1,410 ▲104.19 ▼0.0397.51 ▼2.1941.63 ▼2.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/beononline/beonline.php
    • > /wp-content/plugins/beononline/include/main-class.php
    • > /wp-content/plugins/beononline/include/beonlinefixindexing.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/beononline/include/beonlinefixindexing.php:6

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)
There were no browser issues found

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 69% 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:
  • Requires php: Version not formatted correctly
  • Tags: No tags were detected
  • Donate link: Invalid url: "PayPal nevsak9@gmail.com"
  • Contributors: No tags were detected
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

beononline/beonline.php 85% from 13 tests

"Be-online" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("beononline.php" instead of "beonline.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin115 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3494959
JavaScript1133556

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
2 PNG files occupy 0.37MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner.png191.81KB66.42KB▼ 65.37%
assets/baner.png191.81KB66.42KB▼ 65.37%