84% wp-faucet-direct

Code Review | WP Faucet Direct

WordPress plugin WP Faucet Direct scored84%from 54 tests.

About plugin

  • Plugin page: wp-faucet-direct
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Aug 23, 2017
  • Latest release: Sep 22, 2017
  • Number of updates: 9
  • Update frequency: every 3.4 days
  • Top authors: jose0912 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,120 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.00MB] [CPU: ▼5.28ms] Passed 4 tests

A check of server-side resources used by WP Faucet Direct
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.19 ▼6.82
Dashboard /wp-admin3.31 ▲0.0044.25 ▼3.74
Posts /wp-admin/edit.php3.36 ▲0.0042.90 ▼2.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.78 ▼8.18
Media Library /wp-admin/upload.php3.23 ▲0.0035.28 ▲0.01

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Faucet Direct
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.504.37 ▲1.8940.36 ▼4.85
Dashboard /wp-admin2,206 ▲215.84 ▲0.96108.72 ▼8.6940.65 ▼3.00
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0433.31 ▼1.5436.26 ▲2.09
Add New Post /wp-admin/post-new.php1,547 ▲1423.18 ▲0.01624.84 ▼55.6653.26 ▲2.15
Media Library /wp-admin/upload.php1,385 ▼64.18 ▼0.0595.98 ▼13.0040.25 ▼7.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Exception: mCrypt extension seems not to be installed in wp-content/plugins/wp-faucet-direct/lib/block_io.php:11
    • > PHP Fatal error
      Uncaught Exception: mCrypt extension seems not to be installed in wp-content/plugins/wp-faucet-direct/lib/block_io.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: dogecoin, litecoin, faucet, cryptocurrency, altcoin...

wp-faucet-direct/wp-faucet-direct.php 85% from 13 tests

The main file in "WP Faucet Direct" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 186 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,052 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32014291,840
CSS2160120
PO File1384492

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity41.33
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods52
▷ Static methods00.00%
▷ Public methods4892.31%
▷ Protected methods00.00%
▷ Private methods47.69%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG files were detected