74% gallery-circle

Code Review | Gallery-Circle

WordPress plugin Gallery-Circle scored74%from 54 tests.

About plugin

  • Plugin page: gallery-circle
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 0.2-0.2
  • WordPress version: 6.3.1
  • First release: Jun 6, 2015
  • Latest release: Jun 7, 2015
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: gabrielvperez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,599 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.92MB] [CPU: ▼56.16ms] Passed 4 tests

A check of server-side resources used by Gallery-Circle
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.405.26 ▼39.34
Dashboard /wp-admin2.09 ▼1.225.57 ▼47.25
Posts /wp-admin/edit.php2.09 ▼1.277.43 ▼42.85
Add New Post /wp-admin/post-new.php2.09 ▼3.806.52 ▼95.21
Media Library /wp-admin/upload.php2.09 ▼1.156.14 ▼31.90

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Gallery-Circle
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.41 ▲0.131.89 ▼0.0643.36 ▼3.78
Dashboard /wp-admin2,197 ▲205.62 ▲0.0497.32 ▼2.3342.59 ▼3.38
Posts /wp-admin/edit.php2,102 ▲21.98 ▼0.0336.07 ▼1.1732.79 ▼4.13
Add New Post /wp-admin/post-new.php1,528 ▼323.10 ▲0.11610.24 ▼48.7447.52 ▲0.56
Media Library /wp-admin/upload.php1,402 ▲84.15 ▼0.0499.62 ▼4.3043.59 ▼0.49

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
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the Gallery-Circle handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at 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 wp_register_style() in wp-content/plugins/gallery-circle/gallery-circle.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: custom, circle, hover, gallery, category...

gallery-circle/gallery-circle.php 92% from 13 tests

The principal PHP file in "Gallery-Circle" v. 0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 225 characters long)

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
Good job! No executable or dangerous file extensions detected263 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS121180
PHP181383

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.54MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/default-green.png34.27KB27.02KB▼ 21.16%
images/default-.png32.95KB27.05KB▼ 17.90%
images/default-orange.png34.00KB26.74KB▼ 21.37%
images/default-pink.png33.38KB27.08KB▼ 18.87%
images/default-yellow.png33.21KB26.98KB▼ 18.77%