83% ethereum-price-tooltip

Code Review | Ethereum price tooltip

WordPress plugin Ethereum price tooltip scored83%from 54 tests.

About plugin

  • Plugin page: ethereum-price-to...
  • Plugin version: 1.4.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 18, 2023
  • Latest release: Jun 21, 2023
  • Number of updates: 22
  • Update frequency: every 7.2 days
  • Top authors: pluginsclub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /235 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▲59.79ms] 75% from 4 tests

Analyzing server-side resources used by Ethereum price tooltip
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 759.50ms on /wp-admin/tools.php?page=ethereum-price)
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.05289.70 ▲246.95
Dashboard /wp-admin3.35 ▲0.0548.44 ▼4.18
Posts /wp-admin/edit.php3.40 ▲0.0546.90 ▼2.13
Add New Post /wp-admin/post-new.php5.93 ▲0.05568.82 ▲463.67
Media Library /wp-admin/upload.php3.28 ▲0.0536.14 ▼1.50
Ethereum Price /wp-admin/tools.php?page=ethereum-price3.24759.50

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Ethereum price tooltip
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3913.30 ▼0.991.66 ▼0.5337.78 ▼6.32
Dashboard /wp-admin2,210 ▲225.86 ▲0.96108.42 ▼5.4042.46 ▼5.69
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0134.06 ▼4.0330.40 ▼1.34
Add New Post /wp-admin/post-new.php1,517 ▼2517.94 ▼0.25633.35 ▲20.0653.94 ▲0.56
Media Library /wp-admin/upload.php1,386 ▼24.20 ▼0.0099.76 ▲1.5241.31 ▼1.74
Ethereum Price /wp-admin/tools.php?page=ethereum-price9942.0424.9929.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ethereum-price-tooltip/includes/settings_page.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ethereum-price-tooltip/eth-price-tooltip.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: You can look at the official readme.txt

ethereum-price-tooltip/eth-price-tooltip.php 92% from 13 tests

This is the main PHP file of "Ethereum price tooltip" version 1.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ethereum-price-tooltip.php" instead of "eth-price-tooltip.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected355 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP45535300
CSS26055

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.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