74% provide-forex-signals

Code Review | Provide Forex Signals

WordPress plugin Provide Forex Signals scored74%from 54 tests.

About plugin

  • Plugin page: provide-forex-sig...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2021
  • Latest release: Jul 9, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: codeies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /583 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.99ms] Passed 4 tests

An overview of server-side resources used by Provide Forex Signals
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.58 ▼2.06
Dashboard /wp-admin3.35 ▲0.0543.78 ▼5.02
Posts /wp-admin/edit.php3.40 ▲0.0548.54 ▼0.74
Add New Post /wp-admin/post-new.php5.93 ▲0.0582.95 ▼20.14
Media Library /wp-admin/upload.php3.27 ▲0.0532.46 ▲1.55

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Provide Forex Signals
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13313.58 ▼0.805.33 ▲3.3742.98 ▼3.02
Dashboard /wp-admin2,209 ▲215.86 ▼0.04105.55 ▼10.8942.88 ▼3.57
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0339.52 ▲1.6934.62 ▲0.11
Add New Post /wp-admin/post-new.php1,535 ▲2123.31 ▲5.86742.35 ▲94.5360.90 ▲8.57
Media Library /wp-admin/upload.php1,388 ▲34.32 ▲0.1198.83 ▼6.2240.13 ▼2.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_signalbox_signals
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/provide-forex-signals/assets/inc/sbg-apis-register.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/provide-forex-signals/assets/inc/sbg-register-shortcode.php:77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/provide-forex-signals/assets/inc/sbg-ajax-request.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("#")
You can look at the official readme.txt

provide-forex-signals/provide-forex-signals.php 92% from 13 tests

The main PHP script in "Provide Forex Signals" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin444 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP55952244
CSS155113
JavaScript111375
SVG10012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected