79% giga-store-advanced-sections

Code Review | Giga Store Advanced Sections

WordPress plugin Giga Store Advanced Sections scored79%from 54 tests.

About plugin

  • Plugin page: giga-store-advanc...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 19, 2016
  • Latest release: Dec 22, 2016
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: themes4wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /29,814 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Server-side resources used by Giga Store Advanced Sections
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.0442.18 ▼8.48
Dashboard /wp-admin3.61 ▼0.0252.43 ▼12.75
Posts /wp-admin/edit.php3.72 ▲0.0450.15 ▼0.35
Add New Post /wp-admin/post-new.php6.19 ▲0.0492.91 ▼14.83
Media Library /wp-admin/upload.php3.53 ▲0.0440.25 ▼0.94

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Giga Store Advanced Sections
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.242.04 ▲0.3540.83 ▼2.78
Dashboard /wp-admin2,192 ▲245.55 ▼0.0585.02 ▼4.1840.38 ▼7.82
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0335.95 ▼4.7234.67 ▼3.18
Add New Post /wp-admin/post-new.php1,526 ▼1917.43 ▼5.72690.30 ▲41.3857.76 ▲4.45
Media Library /wp-admin/upload.php1,397 ▼04.15 ▼0.0297.83 ▼9.1445.13 ▼1.52

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/giga-store-advanced-sections/giga-store-advanced-sections.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/giga-store-advanced-sections/inc/settings.php:307

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
5 plugin tags: slider, image, testimonials, blog, section

giga-store-advanced-sections/giga-store-advanced-sections.php Passed 13 tests

The main file in "Giga Store Advanced Sections" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
Add Testimonials, Slider and Custom Image sections to Giga Store theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected303 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21731303

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected