78% thumbar

Code Review | Thumbar Rating Plugin

WordPress plugin Thumbar Rating Plugin scored78%from 54 tests.

About plugin

  • Plugin page: thumbar
  • Plugin version: 3.000
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.3
  • WordPress version: 6.3.1
  • First release: Aug 6, 2015
  • Latest release: May 30, 2016
  • Number of updates: 120
  • Update frequency: every 2.5 days
  • Top authors: thumbar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,556 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.31MB] [CPU: ▼19.15ms] Passed 4 tests

A check of server-side resources used by Thumbar Rating Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0230.27 ▼7.90
Dashboard /wp-admin3.32 ▲0.0243.37 ▼3.51
Posts /wp-admin/edit.php3.37 ▲0.0242.13 ▼7.78
Add New Post /wp-admin/post-new.php4.61 ▼1.2741.17 ▼57.39
Media Library /wp-admin/upload.php3.25 ▲0.0232.87 ▼2.46
Thumbar /wp-admin/options-general.php?page=tb_options3.1931.78

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Thumbar Rating Plugin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲19813.65 ▼0.725.64 ▲4.0040.58 ▼0.41
Dashboard /wp-admin2,210 ▲255.82 ▼0.0296.55 ▼5.9439.20 ▼5.04
Posts /wp-admin/edit.php2,090 ▲12.02 ▼0.0233.35 ▼1.9735.30 ▲0.64
Add New Post /wp-admin/post-new.php1,536 ▲1623.03 ▼0.13656.93 ▼6.3557.56 ▼5.39
Media Library /wp-admin/upload.php1,389 ▲44.23 ▼0.00108.43 ▲10.1145.76 ▲3.90
Thumbar /wp-admin/options-general.php?page=tb_options8072.0628.0327.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tb_options
    • > Notice in wp-content/plugins/thumbar/thumbar-wp.php+45
    Trying to access array offset on value of type bool

SRP 50% 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/thumbar/thumbar-wp.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 133 tag instead of maximum 10
The official readme.txt might help

thumbar/thumbar-wp.php 85% from 13 tests

The main file in "Thumbar Rating Plugin" v. 3.000 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("thumbar.php" instead of "thumbar-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected68 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171468

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.18
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin