10% crypto-tips

Code Review | Crypto tips

WordPress plugin Crypto tips scored10%from 54 tests.

About plugin

  • Plugin page: crypto-tips
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 2, 2014
  • Latest release: Mar 2, 2014
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: spitfire1337 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,070 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/crypto-tips/crypto.php+12
    include(jsonRPCclient.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.97MB] [CPU: ▼61.88ms] Passed 4 tests

Analyzing server-side resources used by Crypto tips
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.13 ▼37.96
Dashboard /wp-admin2.05 ▼1.306.34 ▼56.17
Posts /wp-admin/edit.php2.05 ▼1.315.32 ▼41.33
Add New Post /wp-admin/post-new.php2.05 ▼3.845.88 ▼112.07
Media Library /wp-admin/upload.php2.05 ▼1.185.58 ▼32.85
Crypto tips settings /wp-admin/plugins.php?page=cryptocoinadmin2.056.08

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
recovery_mode_email_last_sent
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Crypto tips
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,690 ▼5614.45 ▲0.311.40 ▼0.6427.92 ▼22.21
Dashboard /wp-admin2,210 ▲194.85 ▼0.00120.98 ▼3.9243.93 ▼5.37
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0437.20 ▼16.1632.02 ▼5.41
Add New Post /wp-admin/post-new.php45 ▼1,4740.44 ▼20.890.08 ▼767.0911.45 ▼65.80
Media Library /wp-admin/upload.php1,389 ▲44.25 ▲0.05114.07 ▼6.0973.92 ▲21.54
Crypto tips settings /wp-admin/plugins.php?page=cryptocoinadmin9202.0229.3228.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/crypto-tips/crypto.php+12
    include(jsonRPCclient.php): failed to open stream: No such file or directory
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/plugins.php?page=cryptocoinadmin
    • > Warning in wp-content/plugins/crypto-tips/crypto.php+12
    include(jsonRPCclient.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/plugins.php?page=cryptocoinadmin
    • > Warning in wp-content/plugins/crypto-tips/crypto.php+12
    include(): Failed opening 'jsonRPCclient.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/plugins.php?page=cryptocoinadmin
    • > Notice in wp-content/plugins/crypto-tips/crypto-admin.php+17
    Undefined index: savesettings

SRP 50% 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
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto-tips/crypto-newpost.php:4
    • > PHP Warning
      include(): Failed opening 'jsonRPCclient.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/crypto-tips/cryptotips/crypto.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto-tips/crypto-newpost.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto-tips/cryptotips/crypto-newpost.php:4
    • > PHP Warning
      include(jsonRPCclient.php): failed to open stream: No such file or directory in wp-content/plugins/crypto-tips/cryptotips/crypto.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto-tips/cryptotips/crypto-newpost.php:4
    • > PHP Warning
      include(): Failed opening 'jsonRPCclient.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/crypto-tips/crypto.php on line 12
    • > PHP Warning
      include(jsonRPCclient.php): failed to open stream: No such file or directory in wp-content/plugins/crypto-tips/crypto.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === crypto-tips === )
The official readme.txt is a good inspiration

crypto-tips/crypto.php 92% from 13 tests

This is the main PHP file of "Crypto tips" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("crypto-tips.php" instead of "crypto.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
There were no executable files found in this plugin292 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP66384292

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity5.67
▷ Minimum method complexity2.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin