77% triberr-wordpress-plugin

Code Review | Triberr

WordPress plugin Triberr scored77%from 54 tests.

About plugin

  • Plugin page: triberr-wordpress...
  • Plugin version: 4.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.4.0
  • WordPress version: 6.3.1
  • First release: Feb 1, 2012
  • Latest release: Jul 17, 2020
  • Number of updates: 44
  • Update frequency: every 70.2 days
  • Top authors: TriberrGlobal (68.18%)99robots (34.09%)

Code review

54 tests

User reviews

5 reviews

Install metrics

700+ active /35,417 total downloads

Benchmarks

Plugin footprint 82% 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.06MB] [CPU: ▲321.86ms] 75% from 4 tests

This is a short check of server-side resources used by Triberr
The following require your attention
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 321.86ms on /wp-admin/options-general.php?page=triberr-options)
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.06 ▼9.56
Dashboard /wp-admin3.41 ▲0.11491.56 ▲438.91
Posts /wp-admin/edit.php3.46 ▲0.11491.69 ▲439.34
Add New Post /wp-admin/post-new.php5.93 ▲0.05516.62 ▲418.76
Media Library /wp-admin/upload.php3.28 ▲0.06482.00 ▲446.38
Triberr /wp-admin/options-general.php?page=triberr-options3.26478.51

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options
triberr_comments_width
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
triberr_comments_status
widget_recent-posts
triberr_comments_bg_color

Browser metrics Passed 4 tests

Triberr: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.35 ▲0.022.08 ▼0.0845.36 ▼4.37
Dashboard /wp-admin2,193 ▲165.54 ▼0.0486.03 ▼14.6239.20 ▼8.28
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0135.61 ▼0.2136.47 ▲0.71
Add New Post /wp-admin/post-new.php1,529 ▼623.31 ▲5.29684.40 ▲44.2353.82 ▼20.55
Media Library /wp-admin/upload.php1,404 ▲44.11 ▼0.0895.43 ▼6.4746.50 ▲3.44
Triberr /wp-admin/options-general.php?page=triberr-options8491.9725.8323.96

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
These items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • triberr_comments_bg_color
    • can_compress_scripts
    • triberr_comments_status
    • widget_theysaidso_widget
    • triberr_comments_width
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% 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)
Even though everything seems fine, this is not 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/triberr-wordpress-plugin/triberr.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=triberr-options
    • > Network (severe)
    https://triberr.com/assets/misc/triberr-logo.png - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 39 tag instead of maximum 10
You can look at the official readme.txt

triberr-wordpress-plugin/triberr.php 92% from 13 tests

The principal PHP file in "Triberr" v. 4.1.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("triberr-wordpress-plugin.php" instead of "triberr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected163 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34175147
JavaScript12115
XML1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.52MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png16.71KB6.30KB▼ 62.28%
assets/icon-256x256.png50.24KB17.56KB▼ 65.04%
assets/screenshot-1.png30.88KB15.48KB▼ 49.86%
assets/banner-1544x500.png314.53KB96.41KB▼ 69.35%
assets/banner-772x250.png118.10KB31.80KB▼ 73.07%