10% live-forex-table

Code Review | Forex Table Google Based (Live)

WordPress plugin Forex Table Google Based (Live) scored 10% from 54 tests.

About plugin

  • Plugin page: live-forex-table
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2015
  • Latest release: Sep 28, 2016
  • Number of updates: 21
  • Update frequency: every 16.7 days
  • Top authors: spikersolns (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 4,872 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/live-forex-table/Live-forex-table.php+10
    Constant WP_DEBUG already defined

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.09ms] Passed 4 tests

An overview of server-side resources used by Forex Table Google Based (Live)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.61 ▼33.63
Dashboard /wp-admin2.05 ▼1.267.17 ▼39.82
Posts /wp-admin/edit.php2.05 ▼1.316.83 ▼42.88
Add New Post /wp-admin/post-new.php2.05 ▼3.845.26 ▼84.03
Media Library /wp-admin/upload.php2.05 ▼1.185.42 ▼25.91
Live Forex Settings /wp-admin/options-general.php?page=live-forex-plugin2.056.28

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_lft_widget
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Forex Table Google Based (Live)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.80 ▲0.081.82 ▼0.1843.02 ▲0.83
Dashboard /wp-admin2,207 ▲195.83 ▲0.9499.38 ▼16.5438.51 ▼0.10
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0039.93 ▼2.0432.39 ▼4.08
Add New Post /wp-admin/post-new.php1,541 ▲2223.40 ▲0.26673.83 ▲19.9175.20 ▲14.02
Media Library /wp-admin/upload.php1,386 ▼24.20 ▼0.0594.92 ▼23.8144.32 ▼3.95
Live Forex Settings /wp-admin/options-general.php?page=live-forex-plugin7902.0626.4727.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/live-forex-table/Live-forex-table.php+10
    Constant WP_DEBUG already defined
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_lft_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=live-forex-plugin
    • > Notice in wp-content/plugins/live-forex-table/Live-forex-table.php+10
    Constant WP_DEBUG already defined

SRP 0% 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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/live-forex-table/Live-forex-table.php
    • > /wp-content/plugins/live-forex-table/inc/widgets.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/live-forex-table/display_rate.php:186

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can look at the official readme.txt

live-forex-table/Live-forex-table.php 85% from 13 tests

The entry point to "Forex Table Google Based (Live)" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 275 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("live-forex-table.php" instead of "Live-forex-table.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected292 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33640292

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshots.png6.15KB4.06KB▼ 34.05%
assets/logo.png2.72KB2.50KB▼ 8.19%