78% airdrop

Code Review | WP Airdrop Manager

WordPress plugin WP Airdrop Manager scored 78% from 54 tests.

About plugin

  • Plugin page: airdrop
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Apr 13, 2018
  • Latest release: Jun 5, 2018
  • Number of updates: 19
  • Update frequency: every 2.8 days
  • Top authors: kadesthemes (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

60+ active / 7,558 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.91ms] Passed 4 tests

This is a short check of server-side resources used by WP Airdrop Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.61 ▼0.75
Dashboard /wp-admin3.35 ▲0.0546.67 ▼0.11
Posts /wp-admin/edit.php3.41 ▲0.0547.26 ▼2.72
Add New Post /wp-admin/post-new.php5.95 ▲0.0794.27 ▲1.59
Media Library /wp-admin/upload.php3.28 ▲0.0534.30 ▼0.08
Airdrop Settings /wp-admin/edit.php?post_type=airdrop&page=airdrop3.2232.33
Add New /wp-admin/post-new.php?post_type=airdrop3.4651.69
All Items /wp-admin/edit.php?post_type=airdrop3.3238.74
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=airdrop3.3629.62

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Airdrop Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲12313.55 ▼0.751.82 ▼0.3544.39 ▼6.60
Dashboard /wp-admin2,278 ▲905.19 ▼0.70112.49 ▼0.6138.24 ▼6.34
Posts /wp-admin/edit.php2,163 ▲742.35 ▲0.1843.90 ▲3.5334.45 ▼4.29
Add New Post /wp-admin/post-new.php1,570 ▲3623.15 ▲0.05608.47 ▼45.1333.70 ▼17.50
Media Library /wp-admin/upload.php1,457 ▲724.52 ▲0.31104.99 ▼2.9346.30 ▲1.95
Airdrop Settings /wp-admin/edit.php?post_type=airdrop&page=airdrop1,0282.6144.3132.74
Add New /wp-admin/post-new.php?post_type=airdrop3,2149.47244.4786.39
All Items /wp-admin/edit.php?post_type=airdrop1,1752.6636.5331.09
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=airdrop1,3812.2535.1328.12

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=airdrop&page=airdrop
    • > Notice in wp-content/plugins/airdrop/admin/settings.php+101
    Trying to access array offset on value of type bool

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
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/airdrop/templates/archive-airdrop.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/airdrop/templates/single-airdrop.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/airdrop/admin/settings.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/airdrop/admin/shortcode.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: cryptocurrency, ico, bounty hunt, cryptocurrencies, bitcoin...

airdrop/airdrop.php 92% from 13 tests

The main PHP file in "WP Airdrop Manager" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected16,362 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS73,1922912,429
SVG30123,360
PHP510699568
JavaScript1215

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected