90% gecko-section

Code Review | Gecko Section

WordPress plugin Gecko Section scored90%from 54 tests.

About plugin

  • Plugin page: gecko-section
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 26, 2019
  • Latest release: May 28, 2019
  • Number of updates: 6
  • Update frequency: every 15.2 days
  • Top authors: dwayneparton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,073 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.53ms] Passed 4 tests

An overview of server-side resources used by Gecko Section
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.35 ▲3.01
Dashboard /wp-admin3.31 ▲0.0149.08 ▲0.26
Posts /wp-admin/edit.php3.36 ▲0.0145.18 ▼2.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.75 ▼18.70
Media Library /wp-admin/upload.php3.23 ▲0.0133.25 ▼1.38

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Gecko Section
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.031.77 ▼0.1342.51 ▼1.18
Dashboard /wp-admin2,206 ▲174.85 ▼0.07111.57 ▼8.4944.45 ▼0.19
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0034.08 ▼1.9635.03 ▲3.50
Add New Post /wp-admin/post-new.php6,184 ▲4,67018.95 ▲1.40873.60 ▲214.1252.91 ▲2.20
Media Library /wp-admin/upload.php1,388 ▲64.20 ▼0.0296.51 ▲1.1042.76 ▲1.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (It's coming) image missing
The official readme.txt might help

gecko-section/gecko-section.php Passed 13 tests

The principal PHP file in "Gecko Section" v. 1.0.5 is loaded by WordPress automatically on each request
86 characters long description:
Section block for full row layouts in themes that support gutenberg full-width blocks.

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
Success! There were no dangerous files found in this plugin165 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS20087
PHP1122277
JavaScript1011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin