84% gfirem-action-after

Code Review | GFireM Action After

WordPress plugin GFireM Action After scored 84% from 54 tests.

About plugin

  • Plugin page: gfirem-action-after
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.2-4.7.3
  • WordPress version: 5.9.2
  • First release: Apr 17, 2017
  • Latest release: Apr 17, 2017
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: gfirem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 598 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼304.55ms] Passed 4 tests

This is a short check of server-side resources used by GFireM Action After
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.0158.65 ▼0.41
Dashboard /wp-admin4.04 ▲0.0136.43 ▼0.30
Posts /wp-admin/edit.php4.33 ▲0.0142.79 ▲0.27
Add New Post /wp-admin/post-new.php7.57 ▼0.0295.05 ▼1,209.91
Media Library /wp-admin/upload.php3.98 ▲0.0031.81 ▼7.58

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 172 new files
Database: no new tables, 4 new options
New WordPress options
fs_active_plugins
fs_accounts
fs_api_cache
fs_debug_mode

Browser metrics Passed 4 tests

This is an overview of browser requirements for GFireM Action After
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,787 ▲3315.93 ▼0.096.43 ▲0.352.20 ▼0.33
Dashboard /wp-admin2,895 ▲306.13 ▲0.00117.65 ▼23.86153.34 ▼27.34
Posts /wp-admin/edit.php2,670 ▼153.25 ▲0.0192.33 ▲24.85147.99 ▲1.92
Add New Post /wp-admin/post-new.php1,755 ▲12017.65 ▲0.29412.68 ▼18.65163.28 ▲15.36
Media Library /wp-admin/upload.php1,695 ▼05.48 ▼0.04140.17 ▼1.69185.60 ▼2.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 4 options
    • fs_api_cache
    • fs_active_plugins
    • fs_accounts
    • fs_debug_mode

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gfirem-action-after/classes/actions/faa_delete_entry/view/delete_entry.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gfirem-action-after/classes/actions/faa_delete_post/view/delete_post.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gfirem-action-after/classes/actions/faa_reset_pass/view/faa_reset_pass_view.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gfirem-action-after/classes/actions/faa_replace/view/faa_replace_view.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gfirem-action-after/view/watch-row.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/gfirem-action-after/classes/actions/faa_mycred/view/faa_mycred_view.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gfirem-action-after/view/action_top.php:2

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: formidable action, formidable, formidable action before, formidable wordpress actions, delete entry...

gfirem-action-after/gfirem_action_after.php 92% from 13 tests

The entry point to "GFireM Action After" version 1.1.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("gfirem-action-after.php" instead of "gfirem_action_after.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin23,693 lines of code in 142 files:
LanguageFilesBlank linesComment linesLines of code
PHP993,7588,92916,425
PO File61,9011,9284,896
Sass16277821,713
JavaScript65868391
Markdown1610192
JSON20042
CSS121934

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 1,051)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity29.10
▷ Minimum class complexity1.00
▷ Maximum class complexity1,051.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes60
▷ Abstract classes23.33%
▷ Concrete classes5896.67%
▷ Final classes00.00%
Methods785
▷ Static methods12015.29%
▷ Public methods60276.69%
▷ Protected methods131.66%
▷ Private methods17021.66%
Functions75
▷ Named functions7397.33%
▷ Anonymous functions22.67%
Constants101
▷ Global constants8483.17%
▷ Class constants1716.83%
▷ Public constants17100.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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
classes/include/freemius/assets/img/formidable_action_after.png9.16KB5.26KB▼ 42.58%
classes/include/freemius/assets/img/formidable-autocomplete.png9.16KB5.26KB▼ 42.58%
classes/include/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
classes/include/freemius/assets/img/gfirem_action_after.png9.16KB5.26KB▼ 42.58%