93% trade-ideas-vision

Code Review | Trade Ideas Vision

WordPress plugin Trade Ideas Vision scored 93% from 54 tests.

About plugin

  • Plugin page: trade-ideas-vision
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 5.8.1
  • First release: Dec 14, 2016
  • Latest release: Mar 9, 2017
  • Number of updates: 9
  • Update frequency: every 9.4 days
  • Top authors: tradeideas01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,277 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼140.68ms] Passed 4 tests

This is a short check of server-side resources used by Trade Ideas Vision
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.82 ▲12.46
Dashboard /wp-admin3.07 ▲0.0143.15 ▼4.35
Posts /wp-admin/edit.php3.12 ▲0.0142.30 ▼0.53
Add New Post /wp-admin/post-new.php5.43 ▼0.0095.02 ▼552.65
Media Library /wp-admin/upload.php3.01 ▲0.0034.38 ▼5.19

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Trade Ideas Vision
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9316.05 ▲0.3910.22 ▼0.6647.07 ▼5.85
Dashboard /wp-admin2,969 ▲326.03 ▼0.03132.85 ▼10.42114.82 ▼2.68
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0065.29 ▼4.0194.16 ▲10.43
Add New Post /wp-admin/post-new.php1,500 ▼17218.48 ▼0.30358.96 ▲8.57111.55 ▼2.54
Media Library /wp-admin/upload.php1,807 ▼05.06 ▲0.04159.45 ▲9.94113.63 ▼4.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/trade-ideas-vision/tradeideas-vision.php

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

trade-ideas-vision/tradeideas-vision.php 85% from 13 tests

The main PHP file in "Trade Ideas Vision" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("trade-ideas-vision.php" instead of "tradeideas-vision.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
No dangerous file extensions were detected51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131351

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin