78% binox

Code Review | Binox

WordPress plugin Binox scored78%from 54 tests.

About plugin

  • Plugin page: binox
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 22, 2021
  • Latest release: Dec 22, 2021
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: binoxmsp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /264 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.84ms] Passed 4 tests

This is a short check of server-side resources used by Binox
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0944.42 ▲3.37
Dashboard /wp-admin3.40 ▲0.0955.81 ▲1.99
Posts /wp-admin/edit.php3.51 ▲0.1549.06 ▼2.51
Add New Post /wp-admin/post-new.php6.00 ▲0.1184.06 ▼6.21
Media Library /wp-admin/upload.php3.32 ▲0.0936.37 ▼0.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Binox: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15213.73 ▼0.548.37 ▲6.4741.53 ▼5.24
Dashboard /wp-admin2,211 ▲315.52 ▼0.1588.23 ▼9.4843.37 ▼0.61
Posts /wp-admin/edit.php2,113 ▲132.02 ▲0.0638.18 ▲2.7032.67 ▼1.00
Add New Post /wp-admin/post-new.php1,545 ▲1723.06 ▲0.11666.27 ▼23.2851.67 ▼0.89
Media Library /wp-admin/upload.php1,416 ▲164.13 ▼0.05102.48 ▼2.7344.27 ▼4.75

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
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/binox/admin/partials/settings-page-admin-display.php
    • > /wp-content/plugins/binox/public/partials/settings-page-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/binox/admin/partials/settings-page-admin-settings-display.php:20

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 Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: wordpress binox, tracking visitor, crm, website reveal

binox/settings-page.php 77% from 13 tests

Analyzing the main PHP file in "Binox" version 1.0.5
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 267 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("binox.php" instead of "settings-page.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin415 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13135578374
JavaScript363041
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.29
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png47.56KB14.88KB▼ 68.71%