10% responsive-grid-quick-view-posts

Code Review | Responsive Grid Quick View Posts for WordPress

WordPress plugin Responsive Grid Quick View Posts for WordPress scored 10% from 54 tests.

About plugin

  • Plugin page: responsive-grid-q...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Apr 8, 2016
  • Latest release: Apr 8, 2016
  • Number of updates: 17
  • Update frequency: every 0.1 days
  • Top authors: smartcms (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,061 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/responsive-grid-quick-view-posts/grid-quick-view.php+12
    Constant WP_DEBUG already defined

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

This is a short check of server-side resources used by Responsive Grid Quick View Posts for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.34 ▼36.23
Dashboard /wp-admin2.05 ▼1.265.48 ▼44.43
Posts /wp-admin/edit.php2.05 ▼1.315.88 ▼41.89
Add New Post /wp-admin/post-new.php2.05 ▼3.846.19 ▼80.41
Media Library /wp-admin/upload.php2.05 ▼1.185.63 ▼25.87

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Responsive Grid Quick View Posts for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.16 ▼1.154.85 ▲2.8543.44 ▲0.80
Dashboard /wp-admin2,219 ▲315.78 ▼0.0694.56 ▼21.0441.99 ▲0.17
Posts /wp-admin/edit.php2,105 ▲191.99 ▼0.0243.77 ▲8.0747.91 ▲12.71
Add New Post /wp-admin/post-new.php1,546 ▲2923.00 ▲5.42647.65 ▲43.4853.53 ▲3.76
Media Library /wp-admin/upload.php1,404 ▲194.23 ▼0.0495.46 ▼0.8340.18 ▼1.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/responsive-grid-quick-view-posts/grid-quick-view.php+12
    Constant WP_DEBUG already defined
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_smartcms_grid_quick_view
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/responsive-grid-quick-view-posts/js/script.js.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined index: column in wp-content/plugins/responsive-grid-quick-view-posts/js/script.js.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/responsive-grid-quick-view-posts/grid-quick-view.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

responsive-grid-quick-view-posts/grid-quick-view.php 92% from 13 tests

The primary PHP file in "Responsive Grid Quick View Posts for WordPress" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-grid-quick-view-posts.php" instead of "grid-quick-view.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,360 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript119778830
PHP22113383
CSS2516147

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin