89% urban-insight-promobar

Code Review | Urban Insight Promobar

WordPress plugin Urban Insight Promobar scored89%from 54 tests.

About plugin

  • Plugin page: urban-insight-pro...
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2021
  • Latest release: Aug 11, 2023
  • Number of updates: 20
  • Update frequency: every 46.7 days
  • Top authors: urbaninsight (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /875 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 gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.75ms] Passed 4 tests

An overview of server-side resources used by Urban Insight Promobar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1042.03 ▲1.41
Dashboard /wp-admin3.43 ▲0.0849.30 ▼3.49
Posts /wp-admin/edit.php3.54 ▲0.1452.03 ▲3.77
Add New Post /wp-admin/post-new.php6.01 ▲0.0897.26 ▼0.21
Media Library /wp-admin/upload.php3.35 ▲0.0837.73 ▼4.69
UI Promobar /wp-admin/options-general.php?page=urbipb3.3944.59

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Urban Insight Promobar: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.45 ▼0.909.76 ▲7.7640.70 ▼3.92
Dashboard /wp-admin2,199 ▲225.63 ▼0.0589.21 ▲0.8441.34 ▼5.96
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0039.80 ▲3.7535.59 ▼0.09
Add New Post /wp-admin/post-new.php1,539 ▲1018.03 ▼5.12642.61 ▼5.3871.70 ▲15.89
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.1195.76 ▼2.5845.77 ▲1.25
UI Promobar /wp-admin/options-general.php?page=urbipb1,8367.10138.23116.49

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can take inspiration from this readme.txt

urban-insight-promobar/urban-insight-promobar.php 92% from 13 tests

Analyzing the main PHP file in "Urban Insight Promobar" version 1.3.2
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin1,632 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript67336993
PHP414543362
CSS42919276
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin