10% infobarwp

Code Review | InfobarWP

WordPress plugin InfobarWP scored10%from 54 tests.

About plugin

  • Plugin page: infobarwp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Apr 25, 2013
  • Latest release: Apr 26, 2013
  • Number of updates: 22
  • Update frequency: every 0.1 days
  • Top authors: bertranddo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,686 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/infobarwp/infobar.php+36
    Methods with the same name as their class will not be constructors in a future version of PHP; wpinfobar has a deprecated constructor

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.09ms] Passed 4 tests

An overview of server-side resources used by InfobarWP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.42 ▲3.65
Dashboard /wp-admin3.31 ▼0.0457.24 ▼6.59
Posts /wp-admin/edit.php3.36 ▲0.0045.15 ▼9.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.07 ▼28.01
Media Library /wp-admin/upload.php3.23 ▲0.0040.44 ▲5.02

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for InfobarWP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▲0.141.89 ▲0.0544.03 ▲0.20
Dashboard /wp-admin2,195 ▲155.58 ▼0.0998.78 ▼1.6646.24 ▲0.59
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0135.25 ▼2.0734.29 ▼0.55
Add New Post /wp-admin/post-new.php1,526 ▼023.00 ▼0.85668.10 ▼3.7948.27 ▼5.78
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.01103.93 ▼6.9948.48 ▼2.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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)
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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/infobarwp/infobar.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === infobarwp === )
You can take inspiration from this readme.txt

infobarwp/infobar.php 92% from 13 tests

The primary PHP file in "InfobarWP" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("infobarwp.php" instead of "infobar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,421 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP11,8331582,021
JavaScript73192721,904
CSS43359496

PHP code Passed 2 tests

A short 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.28
Average class complexity257.00
▷ Minimum class complexity257.00
▷ Maximum class complexity257.00
Average method complexity8.11
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
46 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/custom_rgb_g.png1.04KB0.80KB▼ 23.67%
images/headsup-h2.png13.65KB12.54KB▼ 8.07%
images/jui/ui-icons_b83400_256x240.png5.23KB4.11KB▼ 21.49%
images/jui/ui-bg_fine-grain_15_ffffff_60x60.png3.63KB1.56KB▼ 56.97%
images/custom_rgb_r.png0.99KB0.74KB▼ 25.34%