84% formidable-to-slack

Code Review | Formidable to Slack

WordPress plugin Formidable to Slack scored84%from 54 tests.

About plugin

  • Plugin page: formidable-to-slack
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-4.2.0
  • WordPress version: 6.3.1
  • First release: Apr 18, 2015
  • Latest release: Apr 18, 2015
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: ninnypants (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,379 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.04MB] [CPU: ▼6.04ms] Passed 4 tests

An overview of server-side resources used by Formidable to Slack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.76 ▼2.50
Dashboard /wp-admin3.35 ▲0.0447.29 ▼8.13
Posts /wp-admin/edit.php3.40 ▲0.0450.64 ▲3.80
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.99 ▼15.44
Media Library /wp-admin/upload.php3.27 ▲0.0436.06 ▲1.90

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Formidable to Slack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.65 ▼0.551.63 ▼0.4339.46 ▼4.24
Dashboard /wp-admin2,206 ▲184.87 ▼0.01104.21 ▼13.4938.94 ▼8.39
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0141.79 ▲4.2736.54 ▲2.59
Add New Post /wp-admin/post-new.php1,519 ▲523.33 ▲5.70650.28 ▼81.2657.55 ▲1.95
Media Library /wp-admin/upload.php1,382 ▼64.23 ▲0.0995.57 ▼23.7442.51 ▼5.45

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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)
Even though everything seems fine, this is not 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
  • 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/formidable-to-slack/formidable-to-slack.php:77

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: slack, invite, formidible

formidable-to-slack/formidable-to-slack.php Passed 13 tests

This is the main PHP file of "Formidable to Slack" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
Invite formidable form submissions to slack

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected120 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12693120

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods116.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin