83% sc-gridsystem

Code Review | SC GridSystem

WordPress plugin SC GridSystem scored 83% from 54 tests.

About plugin

  • Plugin page: sc-gridsystem
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: May 13, 2015
  • Latest release: Jul 10, 2017
  • Number of updates: 12
  • Update frequency: every 65.7 days
  • Top authors: sergiuscosta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 636 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.94ms] Passed 4 tests

This is a short check of server-side resources used by SC GridSystem
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.56 ▼7.72
Dashboard /wp-admin3.33 ▲0.0346.29 ▲0.48
Posts /wp-admin/edit.php3.44 ▲0.0942.97 ▼3.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.66 ▼22.42
Media Library /wp-admin/upload.php3.25 ▲0.0233.91 ▼2.13

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

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

Browser metrics Passed 4 tests

A check of browser resources used by SC GridSystem
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.39 ▼0.981.54 ▼0.2138.94 ▼7.64
Dashboard /wp-admin2,203 ▲155.80 ▲0.7093.49 ▼9.4336.94 ▼4.11
Posts /wp-admin/edit.php2,089 ▲31.99 ▼0.0234.21 ▲1.5434.20 ▼0.14
Add New Post /wp-admin/post-new.php1,523 ▼1123.33 ▼0.18663.82 ▲0.8954.15 ▼18.24
Media Library /wp-admin/upload.php1,382 ▼34.26 ▲0.0894.05 ▼25.1544.09 ▼5.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sc-gridsystem/functions/shortcode.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sc-gridsystem/index.php:15

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 94% 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: Add an image for screenshot #1 (Slideshow)
The official readme.txt is a good inspiration

sc-gridsystem/index.php 85% from 13 tests

The main PHP script in "SC GridSystem" version 2.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sc-gridsystem.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 detected308 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP24567160
Sass17547
JavaScript1141938
Markdown19028
JSON10026
Ruby1438
CSS1091

PHP code Passed 2 tests

An overview 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.00
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%
Functions39
▷ Named functions39100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
wtfpl-badge.png2.91KB1.80KB▼ 37.92%