90% cryptocurrency-exchanges

Code Review | Cryptocurrency Exchanges

WordPress plugin Cryptocurrency Exchanges scored90%from 54 tests.

About plugin

  • Plugin page: cryptocurrency-ex...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.2.2
  • WordPress version: 6.3.1
  • First release: May 25, 2021
  • Latest release: Jun 14, 2023
  • Number of updates: 58
  • Update frequency: every 12.9 days
  • Top authors: lightimagemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,815 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼9.42ms] Passed 4 tests

An overview of server-side resources used by Cryptocurrency Exchanges
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.74 ▲3.40
Dashboard /wp-admin3.33 ▼0.0253.92 ▼8.81
Posts /wp-admin/edit.php3.38 ▲0.0247.41 ▼6.75
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.05 ▼24.52
Media Library /wp-admin/upload.php3.25 ▲0.0238.37 ▲2.39

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_cryptoexchanges_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Cryptocurrency Exchanges
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲16713.70 ▼0.925.85 ▲4.1842.30 ▲1.47
Dashboard /wp-admin2,223 ▲205.84 ▼0.06105.27 ▲0.2838.48 ▼8.68
Posts /wp-admin/edit.php2,102 ▼12.00 ▼0.0535.37 ▼5.7634.43 ▼3.18
Add New Post /wp-admin/post-new.php1,542 ▼623.17 ▲0.23617.52 ▼50.8149.23 ▼8.00
Media Library /wp-admin/upload.php1,402 ▲24.22 ▼0.1397.90 ▼14.2043.24 ▼7.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_cryptoexchanges_widget

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: crypto, cryptocurrency, cryptocurrency exchanges

cryptocurrency-exchanges/cryptocurrency-exchanges.php Passed 13 tests

The main PHP script in "Cryptocurrency Exchanges" version 1.0 is automatically included on every request by WordPress
132 characters long description:
Displays a list of regulated and legal cryptocurrency exchanges in your WordPress sidebar or any widget area of your wordpress blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin191 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP276169191

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin