78% topbar-message-free

Code Review | TopBar Message - Free

WordPress plugin TopBar Message - Free scored78%from 54 tests.

About plugin

  • Plugin page: topbar-message-free
  • Plugin version: 1.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Dec 29, 2021
  • Latest release: Sep 2, 2022
  • Number of updates: 14
  • Update frequency: every 17.7 days
  • Top authors: servizitrepuntozero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /679 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.48ms] Passed 4 tests

This is a short check of server-side resources used by TopBar Message - Free
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.04 ▲3.55
Dashboard /wp-admin3.33 ▲0.0351.71 ▼3.98
Posts /wp-admin/edit.php3.38 ▲0.0252.39 ▼0.44
Add New Post /wp-admin/post-new.php5.93 ▲0.04102.70 ▲8.28
Media Library /wp-admin/upload.php3.25 ▲0.0239.59 ▲2.79
TopBar Message - Free /wp-admin/admin.php?page=topbar-message-free-options3.2940.53

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for TopBar Message - Free
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.34 ▲0.182.54 ▼2.3040.37 ▼5.69
Dashboard /wp-admin2,266 ▲784.90 ▼0.91115.06 ▲7.5141.01 ▼3.87
Posts /wp-admin/edit.php2,149 ▲602.07 ▲0.0342.78 ▲8.1335.25 ▼1.98
Add New Post /wp-admin/post-new.php1,537 ▼323.37 ▼0.13622.56 ▼48.9755.75 ▼13.43
Media Library /wp-admin/upload.php1,451 ▲634.20 ▼0.02105.94 ▲2.9941.90 ▼3.61
TopBar Message - Free /wp-admin/admin.php?page=topbar-message-free-options1,2561.9835.0583.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/topbar-message-free/includes/topbar-message-free-admin-page.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/topbar-message-free/includes/topbar-message-free-structure.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/topbar-message-free/includes/topbar-message-free-functions.php:30

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=topbar-message-free-options
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=topbar-message-free-options 228 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=topbar-message-free-options
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=topbar-message-free-options 246 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=topbar-message-free-options
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=topbar-message-free-options 250 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=topbar-message-free-options
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=topbar-message-free-options 292 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=topbar-message-free-options
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=topbar-message-free-options 296 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: bar, topbar, notification, top

topbar-message-free/topbar-message-free.php 85% from 13 tests

The main file in "TopBar Message - Free" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("topbar-message-free/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin879 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP46125379
CSS1764323
PO File13638107
JavaScript29244
SVG20126

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/TopBar-MessageLogo.png35.07KB12.60KB▼ 64.06%
images/logo_servizi.png64.81KB29.31KB▼ 54.78%
images/logo_servizi-plugintrasparente.png55.49KB26.18KB▼ 52.83%