84% greencon

Code Review | GreenCon - Table, Listing, Marketing builder for Gutenberg

WordPress plugin GreenCon - Table, Listing, Marketing builder for Gutenberg scored84%from 54 tests.

About plugin

  • Plugin page: greencon
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2021
  • Latest release: Mar 7, 2022
  • Number of updates: 4
  • Update frequency: every 31.0 days
  • Top authors: wpsoul (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /940 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: ▲1.10MB] [CPU: ▲8.55ms] Passed 4 tests

A check of server-side resources used by GreenCon - Table, Listing, Marketing builder for Gutenberg
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.60 ▲1.1456.05 ▲8.89
Dashboard /wp-admin4.39 ▲1.0856.09 ▲4.76
Posts /wp-admin/edit.php4.44 ▲1.0862.62 ▲8.38
Add New Post /wp-admin/post-new.php7.08 ▲1.19107.08 ▲21.03
Media Library /wp-admin/upload.php4.31 ▲1.0847.10 ▲12.15
Global Options /wp-admin/admin.php?page=gutenconopt4.2136.38
Greencon /wp-admin/admin.php?page=greencon4.2138.97

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for GreenCon - Table, Listing, Marketing builder for Gutenberg
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8413.25 ▼1.061.71 ▼0.1340.24 ▼3.86
Dashboard /wp-admin2,248 ▲425.90 ▲0.01109.33 ▲9.6040.33 ▼4.26
Posts /wp-admin/edit.php2,130 ▲302.04 ▲0.0641.88 ▲5.4936.28 ▼3.78
Add New Post /wp-admin/post-new.php6,396 ▲4,86429.69 ▲6.56939.76 ▲334.6540.34 ▼18.26
Media Library /wp-admin/upload.php1,427 ▲274.26 ▲0.03110.64 ▲5.0846.41 ▲2.27
Global Options /wp-admin/admin.php?page=gutenconopt8462.0224.7526.91
Greencon /wp-admin/admin.php?page=greencon1,40310.26281.3274.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function GutenCon\\wp_die() in wp-content/plugins/greencon/greencon.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/greencon/admin/gutenconstart.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/greencon/admin/gutenconnew.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/greencon/admin/class-admin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: seo, gutenberg, marketing

greencon/greencon.php 92% from 13 tests

"GreenCon - Table, Listing, Marketing builder for Gutenberg" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected55,185 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
JSON100049,048
PHP335492154,406
JavaScript17105421,072
CSS293111415
XML100244

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity22.71
▷ Minimum class complexity2.00
▷ Maximum class complexity156.00
Average method complexity5.97
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes13.57%
Methods123
▷ Static methods2721.95%
▷ Public methods8669.92%
▷ Protected methods3528.46%
▷ Private methods21.63%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants4
▷ Global constants4100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/rhlinkhider.png15.91KB5.45KB▼ 65.75%
build/images/drag-icon.8870ef4d.png11.99KB5.52KB▼ 53.94%
assets/icons/noimage-placeholder.png1.72KB0.48KB▼ 71.94%