78% wp-dropkick

Code Review | WP dropkick

WordPress plugin WP dropkick scored78%from 54 tests.

About plugin

  • Plugin page: wp-dropkick
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.0
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Nov 15, 2018
  • Number of updates: 9
  • Update frequency: every 138.3 days
  • Top authors: mahfuzul (66.67%)faysal.turjo (44.44%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,103 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.46ms] Passed 4 tests

Server-side resources used by WP dropkick
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0744.55 ▼3.48
Dashboard /wp-admin3.37 ▲0.0652.35 ▲0.82
Posts /wp-admin/edit.php3.48 ▲0.1255.90 ▲4.65
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.13 ▼8.34
Media Library /wp-admin/upload.php3.29 ▲0.0639.02 ▲1.18

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP dropkick
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.42 ▼0.9410.42 ▲8.7442.73 ▲1.35
Dashboard /wp-admin2,215 ▲445.59 ▼0.0791.62 ▼5.8440.29 ▼2.20
Posts /wp-admin/edit.php2,123 ▲231.98 ▼0.0037.19 ▼2.8234.65 ▼3.90
Add New Post /wp-admin/post-new.php1,544 ▲1822.96 ▼0.71680.16 ▼66.9552.93 ▼6.51
Media Library /wp-admin/upload.php1,423 ▲264.19 ▼0.0597.82 ▼19.5944.70 ▼4.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-dropkick/public/partials/wp-dropkick-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-dropkick/admin/partials/wp-dropkick-admin-display.php:21

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 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 need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-dropkick === )
The official readme.txt might help

wp-dropkick/wp-dropkick.php 92% from 13 tests

The entry point to "WP dropkick" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 246 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,333 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3196469703
PHP12138552242
Sass1301216
CSS3258146
Markdown111026

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.71
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods621.43%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin