78% responsive-google-effect-portfolio-grid

Code Review | Responsive Google Effect Portfolio Grid

WordPress plugin Responsive Google Effect Portfolio Grid scored78%from 54 tests.

About plugin

  • Plugin page: responsive-google...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Sep 16, 2014
  • Latest release: Dec 5, 2014
  • Number of updates: 8
  • Update frequency: every 10.3 days
  • Top authors: wptreasure (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,725 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.31ms] Passed 4 tests

An overview of server-side resources used by Responsive Google Effect Portfolio Grid
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1135.72 ▼2.43
Dashboard /wp-admin3.40 ▲0.0646.97 ▼10.07
Posts /wp-admin/edit.php3.45 ▲0.1048.18 ▼2.77
Add New Post /wp-admin/post-new.php5.98 ▲0.1095.82 ▲2.02
Media Library /wp-admin/upload.php3.32 ▲0.1038.31 ▲3.29
/wp-admin/edit.php?post_type=rgpg_portfolio&page=rgpg_editsc3.2730.52
All Portfolio /wp-admin/edit.php?post_type=rgpg_portfolio3.3738.34
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=rgpg_category&post_type=rgpg_portfolio3.3333.56
Add Portfolio /wp-admin/post-new.php?post_type=rgpg_portfolio3.4654.15
RGPG Shortcode /wp-admin/edit.php?post_type=rgpg_portfolio&page=rgpg_createsc3.3032.03

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
rgpg_category_children
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Responsive Google Effect Portfolio Grid: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲23113.91 ▼0.847.46 ▲5.7136.03 ▼4.52
Dashboard /wp-admin2,259 ▲715.17 ▼0.7496.66 ▼10.9636.98 ▼8.00
Posts /wp-admin/edit.php2,132 ▲432.30 ▲0.2841.94 ▲1.8536.31 ▼1.32
Add New Post /wp-admin/post-new.php1,565 ▲4623.39 ▲0.03632.64 ▼20.9635.24 ▼22.73
Media Library /wp-admin/upload.php1,451 ▲604.24 ▲0.0996.70 ▼4.7046.87 ▲1.05
/wp-admin/edit.php?post_type=rgpg_portfolio&page=rgpg_editsc8051.9825.1820.74
All Portfolio /wp-admin/edit.php?post_type=rgpg_portfolio1,1022.2332.1129.85
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=rgpg_category&post_type=rgpg_portfolio1,4302.0530.4730.10
Add Portfolio /wp-admin/post-new.php?post_type=rgpg_portfolio2,3537.83171.9563.65
RGPG Shortcode /wp-admin/edit.php?post_type=rgpg_portfolio&page=rgpg_createsc9911.9738.4338.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • rgpg_category_children
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/edit.php?post_type=rgpg_portfolio&page=rgpg_editsc
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'rgpg_editsc_func' not found or invalid function name

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 plugin_dir_url() in wp-content/plugins/responsive-google-effect-portfolio-grid/rgpg-main.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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can take inspiration from this readme.txt

responsive-google-effect-portfolio-grid/rgpg-main.php 92% from 13 tests

The entry point to "Responsive Google Effect Portfolio Grid" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-google-effect-portfolio-grid.php" instead of "rgpg-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected927 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP42625358
JavaScript29692343
CSS2317226

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 were not PNG files found in your plugin