84% frontgallery

Code Review | frontGallery

WordPress plugin frontGallery scored 84% from 54 tests.

About plugin

  • Plugin page: frontgallery
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.6.1
  • WordPress version: 6.3.1
  • First release: Aug 24, 2016
  • Latest release: Aug 30, 2016
  • Number of updates: 29
  • Update frequency: every 0.2 days
  • Top authors: mirteh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,200 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.02MB] [CPU: ▼4.56ms] Passed 4 tests

A check of server-side resources used by frontGallery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.56 ▲0.95
Dashboard /wp-admin3.32 ▲0.0245.50 ▼5.70
Posts /wp-admin/edit.php3.38 ▲0.0247.42 ▼0.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.00 ▼13.40
Media Library /wp-admin/upload.php3.25 ▲0.0238.04 ▲0.99

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for frontGallery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲9113.22 ▼0.095.25 ▲3.0037.31 ▼2.16
Dashboard /wp-admin2,225 ▲424.85 ▼0.0899.21 ▼12.2738.79 ▼1.80
Posts /wp-admin/edit.php2,108 ▲192.00 ▼0.0137.82 ▼1.8530.92 ▼0.08
Add New Post /wp-admin/post-new.php1,551 ▲3123.41 ▲0.37621.36 ▼40.9754.93 ▼12.13
Media Library /wp-admin/upload.php1,407 ▲194.25 ▲0.02100.54 ▼9.0146.31 ▲4.41

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frontgallery/frontgallery.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === frontgallery === )
The official readme.txt might help

frontgallery/frontgallery.php Passed 13 tests

The principal PHP file in "frontGallery" v. 1.2 is loaded by WordPress automatically on each request
44 characters long description:
Plugin for displaying images inside gallery.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected228 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS2201153
PHP118874
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin