84% jalbum-bridge

Code Review | jAlbum Bridge

WordPress plugin jAlbum Bridge scored 84% from 54 tests.

About plugin

  • Plugin page: jalbum-bridge
  • Plugin version: 2.0.14
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 14, 2018
  • Latest release: Sep 29, 2022
  • Number of updates: 35
  • Update frequency: every 47.4 days
  • Top authors: mlaza (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active / 9,014 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.02MB] [CPU: ▼4.39ms] Passed 4 tests

Server-side resources used by jAlbum Bridge
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0345.54 ▼20.70
Dashboard /wp-admin3.33 ▲0.0251.84 ▼0.98
Posts /wp-admin/edit.php3.38 ▲0.0252.47 ▲3.41
Add New Post /wp-admin/post-new.php5.92 ▲0.0291.21 ▲0.72
Media Library /wp-admin/upload.php3.25 ▲0.0243.33 ▲4.67

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for jAlbum Bridge
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲10113.97 ▼0.445.55 ▲3.2541.93 ▼11.18
Dashboard /wp-admin2,214 ▲114.96 ▼0.83119.35 ▲14.5143.18 ▲1.39
Posts /wp-admin/edit.php2,100 ▲112.23 ▲0.2234.96 ▼5.7731.99 ▼5.29
Add New Post /wp-admin/post-new.php6,425 ▲4,90620.52 ▼2.571,129.34 ▲433.5640.51 ▼16.96
Media Library /wp-admin/upload.php1,399 ▲144.36 ▲0.1194.91 ▼18.1640.04 ▼8.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/jalbum-bridge/jalbum-bridge.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

jalbum-bridge/jalbum-bridge.php Passed 13 tests

Analyzing the main PHP file in "jAlbum Bridge" version 2.0.14
92 characters long description:
With this plugin you can add spectacular projectors of jAlbum albums to your Wordpress site.

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 plugin7,142 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81,2146524,513
Sass247121,429
CSS22266835
SVG16116276
PHP1373989

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions4
▷ Named functions4100.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
No PNG files were detected