78% personalbridge

Code Review | PersonalBridge

WordPress plugin PersonalBridge scored78%from 54 tests.

About plugin

  • Plugin page: personalbridge
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2021
  • Latest release: Sep 11, 2023
  • Number of updates: 8
  • Update frequency: every 89.6 days
  • Top authors: personalbridge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.11ms] Passed 4 tests

An overview of server-side resources used by PersonalBridge
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.68 ▼10.16
Dashboard /wp-admin3.32 ▲0.0247.41 ▼3.33
Posts /wp-admin/edit.php3.37 ▲0.0248.30 ▲3.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.50 ▼9.38
Media Library /wp-admin/upload.php3.25 ▲0.0235.13 ▲2.45

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for PersonalBridge
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.25 ▼1.131.71 ▼0.6041.41 ▼7.26
Dashboard /wp-admin2,206 ▲185.84 ▲0.9699.92 ▼18.3938.30 ▼10.43
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0233.89 ▼0.3636.04 ▲0.67
Add New Post /wp-admin/post-new.php1,533 ▼023.11 ▲0.02620.60 ▼30.9253.60 ▲0.13
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0192.13 ▼5.3541.46 ▲1.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/personalbridge/personalbridge.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'PersonalBridge_Theme_Base' not found in wp-content/plugins/personalbridge/inc/theme-flatsome.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'PersonalBridge_Theme_Base' not found in wp-content/plugins/personalbridge/inc/theme-normal.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: fulfillment, woocommerce, customize product, pod product, printondemand...

personalbridge/personalbridge.php 92% from 13 tests

The entry point to "PersonalBridge" version 1.0.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin272 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP55214246
CSS13026

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity9.40
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin