84% flynax-bridge

Code Review | Flynax Bridge

WordPress plugin Flynax Bridge scored84%from 54 tests.

About plugin

  • Plugin page: flynax-bridge
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2015
  • Latest release: Nov 22, 2023
  • Number of updates: 9
  • Update frequency: every 331.6 days
  • Top authors: v1rustyle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,618 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.42ms] Passed 4 tests

Server-side resources used by Flynax Bridge
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1740.97 ▼1.23
Dashboard /wp-admin3.47 ▲0.1748.96 ▼1.99
Posts /wp-admin/edit.php3.59 ▲0.2350.95 ▲5.43
Add New Post /wp-admin/post-new.php6.06 ▲0.1684.20 ▼3.49
Media Library /wp-admin/upload.php3.40 ▲0.1636.74 ▲1.03

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
flb_flynax_listings
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_fl_bridge_featured_listings

Browser metrics Passed 4 tests

A check of browser resources used by Flynax Bridge
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5714.05 ▼0.321.75 ▲0.0441.80 ▼2.34
Dashboard /wp-admin2,195 ▲185.62 ▼0.0284.63 ▼11.9940.62 ▼3.48
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0234.30 ▼3.2531.17 ▼4.44
Add New Post /wp-admin/post-new.php1,526 ▼023.48 ▼0.03640.52 ▲48.3665.87 ▲27.37
Media Library /wp-admin/upload.php1,403 ▲34.17 ▲0.0297.62 ▲1.7841.89 ▼3.57

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: listings in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/fl-listings.php on line 8
    • > PHP Notice
      Undefined variable: errors in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/errors.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/form.php:52
    • > PHP Fatal error
      Trait 'Flynax\\Plugins\\FlynaxBridge\\Traits\\SingletonTrait' not found in wp-content/plugins/flynax-bridge/src/Request.php on line 14
    • > PHP Notice
      Undefined variable: widgetTitle in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/fl-listings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flynax-bridge/flynax-bridge.php:14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/fl-listings.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/fl-listings.php:29
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/flynax-bridge/view/Widgets/FeaturedListings/fl-listings.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/flynax-bridge/src/Widgets/FeaturedListings.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: ads script, classifieds, flynax bridge, flynax, classifieds ads...

flynax-bridge/flynax-bridge.php Passed 13 tests

This is the main PHP file of "Flynax Bridge" version 2.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
13 characters long description:
Flynax Bridge

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
Success! There were no dangerous files found in this plugin1,648 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP263388261,447
PO File2326490
CSS213065
JavaScript11334
JSON20012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits1
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods104
▷ Static methods4038.46%
▷ Public methods10197.12%
▷ Protected methods00.00%
▷ Private methods32.88%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.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 files were detected