89% bepro-listings-gallery-sliders

Code Review | BePro Listings Gallery Slider

WordPress plugin BePro Listings Gallery Slider scored 89% from 54 tests.

About plugin

  • Plugin page: bepro-listings-ga...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 5.9.2
  • First release: May 7, 2014
  • Latest release: Oct 6, 2014
  • Number of updates: 10
  • Update frequency: every 15.2 days
  • Top authors: BeyondPrograms (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,582 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by BePro Listings Gallery Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▼0.0052.02 ▼1.83
Dashboard /wp-admin3.47 ▲0.0632.22 ▼5.00
Posts /wp-admin/edit.php3.69 ▲0.0537.77 ▼0.25
Add New Post /wp-admin/post-new.php6.93 ▼0.0494.18 ▼1,218.92
Media Library /wp-admin/upload.php3.34 ▲0.0526.20 ▲1.99

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
bepro_listings

Browser metrics Passed 4 tests

This is an overview of browser requirements for BePro Listings Gallery Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,793 ▲7115.99 ▲0.178.16 ▲2.382.26 ▲0.02
Dashboard /wp-admin2,889 ▲316.12 ▼0.13121.46 ▼11.51156.77 ▼5.85
Posts /wp-admin/edit.php2,688 ▼33.24 ▲0.0163.36 ▲0.47139.06 ▼4.88
Add New Post /wp-admin/post-new.php1,773 ▲11221.76 ▲5.60451.55 ▲17.42156.62 ▲4.70
Media Library /wp-admin/upload.php1,698 ▼05.48 ▼0.06141.41 ▲6.11186.16 ▲3.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • bepro_listings

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

bepro-listings-gallery-sliders/bepro_listings_gallery_sliders.php 92% from 13 tests

This is the main PHP file of "BePro Listings Gallery Slider" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bepro-listings-gallery-sliders.php" instead of "bepro_listings_gallery_sliders.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,270 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript278475842
CSS33923257
PHP14428171

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/mCSB_buttons.png1.36KB0.41KB▼ 69.94%
images/controls.png2.74KB1.42KB▼ 48.29%