77% gridster-portfolio

Code Review | Gridster Custom

WordPress plugin Gridster Custom scored 77% from 54 tests.

About plugin

  • Plugin page: gridster-portfolio
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Jul 1, 2016
  • Latest release: Jul 16, 2016
  • Number of updates: 5
  • Update frequency: every 3.4 days
  • Top authors: sujon3g (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 749 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
Installer ran successfully

Server metrics [RAM: ▼0.65MB] [CPU: ▼18.39ms] Passed 4 tests

A check of server-side resources used by Gridster Custom
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.05 ▲5.59
Dashboard /wp-admin3.35 ▲0.0547.32 ▲0.77
Posts /wp-admin/edit.php3.40 ▲0.0447.33 ▼2.97
Add New Post /wp-admin/post-new.php3.13 ▼2.7537.62 ▼72.89
Media Library /wp-admin/upload.php3.27 ▲0.0433.92 ▲1.54
Add new portfolio /wp-admin/post-new.php?post_type=gridster-portfolio3.1332.12
portfolio items /wp-admin/edit.php?post_type=gridster-portfolio3.3235.01

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Gridster Custom
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲22013.61 ▼1.029.69 ▲8.1040.62 ▼0.50
Dashboard /wp-admin2,230 ▲425.85 ▲0.9794.93 ▼12.7538.03 ▼6.44
Posts /wp-admin/edit.php2,119 ▲302.06 ▲0.0540.27 ▼0.1836.24 ▲1.38
Add New Post /wp-admin/post-new.php1,556 ▲3623.37 ▲0.50590.82 ▼98.8754.48 ▼0.84
Media Library /wp-admin/upload.php1,409 ▲184.21 ▲0.0295.61 ▼6.7742.30 ▼1.25
Add new portfolio /wp-admin/post-new.php?post_type=gridster-portfolio2,2667.66172.9162.20
portfolio items /wp-admin/edit.php?post_type=gridster-portfolio1,0831.9432.6839.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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/post-new.php?post_type=gridster-portfolio
    • > Notice in wp-content/plugins/gridster-portfolio/init.php+37
    Undefined index: gridster-row
    • > GET request to /wp-admin/post-new.php?post_type=gridster-portfolio
    • > Notice in wp-content/plugins/gridster-portfolio/init.php+40
    Undefined index: gridster-column
    • > GET request to /wp-admin/post-new.php?post_type=gridster-portfolio
    • > Notice in wp-content/plugins/gridster-portfolio/init.php+43
    Undefined index: gridster-x
    • > GET request to /wp-admin/post-new.php?post_type=gridster-portfolio
    • > Notice in wp-content/plugins/gridster-portfolio/init.php+46
    Undefined index: gridster-y

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gridster-portfolio/init.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% 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 require attention:
  • Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from) image missing
  • Contributors: The plugin contributors field is missing
  • Plugin Name: Please specify the plugin name on the first line ( === gridster-portfolio === )
The official readme.txt might help

gridster-portfolio/init.php 92% from 13 tests

The principal PHP file in "Gridster Custom" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gridster-portfolio.php" instead of "init.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
Good job! No executable or dangerous file extensions detected3,131 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript79161,0943,033
PHP137991
CSS2017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin