10% bogoxlib

Code Review | BogoXLib

WordPress plugin BogoXLib scored10%from 54 tests.

About plugin

  • Plugin page: bogoxlib
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2015
  • Latest release: Apr 2, 2015
  • Number of updates: 4
  • Update frequency: every 8.0 days
  • Top authors: mechter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,157 total downloads

Benchmarks

Plugin footprint 40% 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
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5643
    File class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.

Server metrics [RAM: ▼1.85MB] [CPU: ▼54.72ms] Passed 4 tests

Analyzing server-side resources used by BogoXLib
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.36 ▼31.25
Dashboard /wp-admin2.16 ▼1.185.48 ▼52.88
Posts /wp-admin/edit.php2.17 ▼1.195.94 ▼39.41
Add New Post /wp-admin/post-new.php2.16 ▼3.726.58 ▼95.34
Media Library /wp-admin/upload.php2.16 ▼1.065.94 ▼27.29

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for BogoXLib
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.25 ▼0.292.16 ▲0.4637.68 ▼2.46
Dashboard /wp-admin2,195 ▲175.59 ▼0.0593.87 ▼7.5543.08 ▲1.83
Posts /wp-admin/edit.php2,103 ▲62.03 ▲0.0440.26 ▲4.4336.49 ▲5.23
Add New Post /wp-admin/post-new.php1,526 ▼023.07 ▼0.55653.32 ▼23.8446.76 ▼13.43
Media Library /wp-admin/upload.php1,403 ▲64.18 ▼0.0196.17 ▼2.0544.87 ▲3.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5643
    File class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bogoxlib/includes/email.php on line 56
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/bogoxlib/includes/email.php on line 56
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bogoxlib/includes/email.php on line 56
    • > PHP Warning
      require_once(ABSPATHWPINC/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/bogoxlib/includes/email.php on line 56
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-phpmailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/bogoxlib/includes/email.php on line 56
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-phpmailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/bogoxlib/includes/email.php on line 56
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/bogoxlib/includes/email.php on line 56
    • > PHP Warning
      require_once(ABSPATHWPINC/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/bogoxlib/includes/email.php on line 56

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: bogo

bogoxlib/bogoxlib.php Passed 13 tests

The main file in "BogoXLib" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
Library of Bogo extensions for Bogo based translation plugins

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected429 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP411589429

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity18.33
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods853.33%
▷ Protected methods00.00%
▷ Private methods746.67%
Functions23
▷ Named functions2086.96%
▷ Anonymous functions313.04%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin