84% fibre

Code Review | Fibre

WordPress plugin Fibre scored84%from 54 tests.

About plugin

  • Plugin page: fibre
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 27, 2019
  • Latest release: Jan 4, 2023
  • Number of updates: 13
  • Update frequency: every 99.1 days
  • Top authors: wholegraindigital (76.92%)tferry (30.77%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,673 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.58ms] Passed 4 tests

Analyzing server-side resources used by Fibre
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.62 ▼0.24
Dashboard /wp-admin3.42 ▲0.1148.08 ▲0.36
Posts /wp-admin/edit.php3.53 ▲0.1745.95 ▼0.31
Add New Post /wp-admin/post-new.php6.00 ▲0.1183.61 ▼10.13
Media Library /wp-admin/upload.php3.34 ▲0.1137.96 ▲2.60
Fibre /wp-admin/options-general.php?page=fibre3.3032.75

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fibre
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.73 ▲0.051.69 ▼0.4543.11 ▼4.15
Dashboard /wp-admin2,213 ▲285.79 ▲0.6994.95 ▼10.1638.33 ▼6.57
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0133.70 ▼2.3936.46 ▲1.98
Add New Post /wp-admin/post-new.php1,538 ▲523.12 ▼0.31627.29 ▼39.3362.19 ▼7.22
Media Library /wp-admin/upload.php1,389 ▲44.19 ▼0.0294.74 ▼5.0640.22 ▼8.22
Fibre /wp-admin/options-general.php?page=fibre8022.0524.1326.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/fibre/includes/view/admin-t-c.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Fibre\\Client\\Integration\\IIntegration' not found in wp-content/plugins/fibre/includes/integration/plugin/limitloginattempts.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Fibre\\Client\\Provider\\Provider' not found in wp-content/plugins/fibre/includes/provider/sites.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Fibre\\Client\\Integration\\IIntegration' not found in wp-content/plugins/fibre/includes/integration/plugin/wordfence.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/fibre/includes/view/admin-data.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/fibre/includes/view/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Fibre\\Client\\Integration\\IIntegration' not found in wp-content/plugins/fibre/includes/integration/plugin/wpcontactform7.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/fibre/includes/view/admin-generate-token.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/fibre/includes/view/admin-details.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Fibre\\Client\\Provider\\Provider' not found in wp-content/plugins/fibre/includes/provider/themes.php:5

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: fibre, manage

fibre/fibre.php Passed 13 tests

"Fibre" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
35 characters long description:
Fibre Client for the Fibre Platform

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,082 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP342431641,049
SVG10120
CSS13013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity5.88
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces4
Interfaces2
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods73
▷ Static methods7197.26%
▷ Public methods4865.75%
▷ Protected methods00.00%
▷ Private methods2534.25%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.05MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png16.22KB17.33KB0.00%
assets/screenshot-1.png15.77KB16.86KB0.00%
assets/screenshot-2.png19.98KB21.49KB0.00%