84% tumbili-mailchimp-feed-for-gutenberg

Code Review | Tumbili: Mailchimp Signup for Gutenberg

WordPress plugin Tumbili: Mailchimp Signup for Gutenberg scored84%from 54 tests.

About plugin

  • Plugin page: tumbili-mailchimp...
  • Plugin version: 0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-5.4
  • WordPress version: 6.3.1
  • First release: Dec 9, 2018
  • Latest release: May 6, 2020
  • Number of updates: 8
  • Update frequency: every 79.6 days
  • Top authors: gubbigubbi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,052 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.01MB] [CPU: ▼5.80ms] Passed 4 tests

An overview of server-side resources used by Tumbili: Mailchimp Signup for Gutenberg
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.85 ▲4.72
Dashboard /wp-admin3.31 ▲0.0145.84 ▼8.09
Posts /wp-admin/edit.php3.36 ▲0.0149.34 ▼2.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.89 ▼13.97
Media Library /wp-admin/upload.php3.23 ▲0.0138.41 ▲0.96

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tumbili: Mailchimp Signup for Gutenberg
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.31 ▼0.282.37 ▲0.6542.79 ▼0.49
Dashboard /wp-admin2,198 ▲275.67 ▼0.0189.07 ▼1.3839.36 ▼2.97
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0137.69 ▼4.0735.51 ▲0.84
Add New Post /wp-admin/post-new.php6,366 ▲4,83027.77 ▲4.52940.09 ▲247.7257.58 ▲5.79
Media Library /wp-admin/upload.php1,400 ▼04.26 ▼0.0198.12 ▼10.5843.90 ▼5.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_block_type() in wp-content/plugins/tumbili-mailchimp-feed-for-gutenberg/src/server.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === tumbili-mailchimp-feed-for-gutenberg === )
The official readme.txt might help

tumbili-mailchimp-feed-for-gutenberg/plugin.php 92% from 13 tests

The main PHP file in "Tumbili: Mailchimp Signup for Gutenberg" ver. 0.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tumbili-mailchimp-feed-for-gutenberg.php" instead of "plugin.php")

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
There were no executable files found in this plugin531 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35511293
PHP34767196
SVG10140
CSS2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin