10% gavii-gallery

Code Review | Gavii Gallery

WordPress plugin Gavii Gallery scored 10% from 54 tests.

About plugin

  • Plugin page: gavii-gallery
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: May 30, 2013
  • Latest release: Jun 9, 2013
  • Number of updates: 16
  • Update frequency: every 0.6 days
  • Top authors: Gavii (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,053 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/gavii-gallery/gavii-app.php+76
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼57.14ms] Passed 4 tests

An overview of server-side resources used by Gavii Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.53 ▼43.48
Dashboard /wp-admin2.05 ▼1.254.91 ▼52.81
Posts /wp-admin/edit.php2.05 ▼1.315.63 ▼41.32
Add New Post /wp-admin/post-new.php2.05 ▼3.844.59 ▼90.96
Media Library /wp-admin/upload.php2.05 ▼1.185.54 ▼28.34

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_gavii_gallery
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Gavii Gallery: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼0.981.57 ▼0.5937.83 ▼5.94
Dashboard /wp-admin2,209 ▲325.91 ▲1.02110.01 ▲3.1142.84 ▼4.38
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0136.67 ▲0.6135.00 ▼2.37
Add New Post /wp-admin/post-new.php1,537 ▲417.88 ▼5.35675.30 ▲66.0657.22 ▲12.18
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.03100.90 ▼0.1641.65 ▼1.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/gavii-gallery/gavii-app.php+76
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_gavii_gallery
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gavii-gallery/gavii-app.php:12

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

gavii-gallery/gavii-app.php 92% from 13 tests

"Gavii Gallery" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("gavii-gallery.php" instead of "gavii-app.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111956

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin