84% gmis

Code Review | Masonry & Infinite Scroll for Genesis

WordPress plugin Masonry & Infinite Scroll for Genesis scored 84% from 54 tests.

About plugin

  • Plugin page: gmis
  • Plugin version: 2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2016
  • Latest release: Aug 4, 2022
  • Number of updates: 12
  • Update frequency: every 196.2 days
  • Top authors: kaushik07 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 2,149 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Masonry & Infinite Scroll for Genesis
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.94 ▲8.09
Dashboard /wp-admin3.32 ▲0.0246.97 ▼0.81
Posts /wp-admin/edit.php3.37 ▲0.0146.15 ▼0.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.06 ▼10.97
Media Library /wp-admin/upload.php3.24 ▲0.0135.79 ▲2.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Masonry & Infinite Scroll for Genesis: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.65 ▼1.031.83 ▲0.2541.50 ▼1.19
Dashboard /wp-admin2,209 ▲205.90 ▲0.9298.98 ▼20.1140.22 ▲2.23
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0436.27 ▼0.4832.36 ▲0.80
Add New Post /wp-admin/post-new.php1,533 ▲523.07 ▲4.91591.06 ▼55.8471.02 ▲2.93
Media Library /wp-admin/upload.php1,391 ▲64.32 ▲0.1299.17 ▼2.7740.95 ▼3.90

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
  • 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/gmis/gmis.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: genesis masonry grid, genesis infinite scrolling, genesis masonry post layout, genesis masonry and infinite scroll

gmis/gmis.php Passed 13 tests

This is the main PHP file of "Masonry & Infinite Scroll for Genesis" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
114 characters long description:
Converts the blog & category pages of genesis themes into beautiful masonry layout with infinite scrolling effect.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected170 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS128091
PHP1141076
JavaScript22193

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin