80% cryptocurrency-mining-pools

Code Review | Cryptocurrency Mining Pools

WordPress plugin Cryptocurrency Mining Pools scored80%from 54 tests.

About plugin

  • Plugin page: cryptocurrency-mi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 19, 2022
  • Latest release: Jun 14, 2023
  • Number of updates: 37
  • Update frequency: every 13.8 days
  • Top authors: lightimagemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,520 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.92MB] [CPU: ▼50.53ms] Passed 4 tests

This is a short check of server-side resources used by Cryptocurrency Mining Pools
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.404.59 ▼37.83
Dashboard /wp-admin2.09 ▼1.226.55 ▼44.51
Posts /wp-admin/edit.php2.09 ▼1.276.06 ▼39.00
Add New Post /wp-admin/post-new.php2.09 ▼3.805.42 ▼80.78
Media Library /wp-admin/upload.php2.09 ▼1.146.07 ▼27.92

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_mining_pools

Browser metrics Passed 4 tests

Checking browser requirements for Cryptocurrency Mining Pools
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.33 ▼1.222.10 ▲0.2542.33 ▼3.70
Dashboard /wp-admin2,206 ▲185.85 ▼0.01109.91 ▲3.5137.75 ▼1.14
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0539.42 ▲3.6335.00 ▲1.48
Add New Post /wp-admin/post-new.php1,514 ▼2817.61 ▼0.55672.59 ▲60.9654.27 ▼0.93
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.14108.79 ▲11.3347.83 ▲5.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'CryptocurrencyMiningPools' does not have a method 'cryptomp_textdomain'
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_mining_pools
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

cryptocurrency-mining-pools/cryptocurrency-mining-pools.php Passed 13 tests

The principal PHP file in "Cryptocurrency Mining Pools" v. 1.0 is loaded by WordPress automatically on each request
115 characters long description:
Displays a list of cryptocurrency mining pools 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP293122116

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin