84% nigerian-naira-for-gravity-forms

Code Review | Nigerian Naira for Gravity Forms

WordPress plugin Nigerian Naira for Gravity Forms scored 84% from 54 tests.

About plugin

  • Plugin page: nigerian-naira-fo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2017
  • Latest release: Jan 12, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: JeffMatson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 900 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Nigerian Naira for Gravity Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.86 ▼3.63
Dashboard /wp-admin3.31 ▲0.0047.49 ▼5.49
Posts /wp-admin/edit.php3.36 ▲0.0042.19 ▼12.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.67 ▼23.83
Media Library /wp-admin/upload.php3.23 ▲0.0032.02 ▼2.08

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Nigerian Naira for Gravity Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.35 ▼1.081.64 ▼0.7644.18 ▼4.35
Dashboard /wp-admin2,209 ▲184.85 ▼1.01107.20 ▲1.2341.63 ▼0.13
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0338.64 ▼0.7736.15 ▲0.22
Add New Post /wp-admin/post-new.php1,533 ▼023.05 ▼0.19620.83 ▼45.7253.43 ▲0.87
Media Library /wp-admin/upload.php1,385 ▼34.21 ▼0.0095.54 ▼23.4642.64 ▼5.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nigerian-naira-for-gravity-forms/nigerian-naira-for-gravity-forms.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: currency, nigerian naira, ngn, nigeria, ecommerce...

nigerian-naira-for-gravity-forms/nigerian-naira-for-gravity-forms.php 92% from 13 tests

"Nigerian Naira for Gravity Forms" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • 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 programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152316

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected