78% wp-nafudakake-dojo-rank-board-generator

Code Review | WP-Nafudakake Dojo Rank Board Generator

WordPress plugin WP-Nafudakake Dojo Rank Board Generator scored78%from 54 tests.

About plugin

  • Plugin page: wp-nafudakake-doj...
  • Plugin version: 2.01 11/14/2017...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2016
  • Latest release: Nov 15, 2017
  • Number of updates: 6
  • Update frequency: every 63.2 days
  • Top authors: ghagen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.88ms] Passed 4 tests

A check of server-side resources used by WP-Nafudakake Dojo Rank Board Generator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.18 ▼2.77
Dashboard /wp-admin3.37 ▲0.0743.99 ▼0.73
Posts /wp-admin/edit.php3.49 ▲0.1347.81 ▲4.06
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.74 ▼5.47
Media Library /wp-admin/upload.php3.30 ▲0.0734.31 ▲1.44
Instructions /wp-admin/admin.php?page=wpnafu_menu_handle3.2730.92
Editor /wp-admin/admin.php?page=wpnafu_editor_handle3.2633.82
Settings /wp-admin/admin.php?page=wpnafu_settings_handle3.2730.01

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 13 new options
New WordPress options
nafu_slatspacing
nafu_slatheight
nafu_showtooltip
widget_theysaidso_widget
nafu_slatwidth
theysaidso_admin_options
nafu_layouttype
widget_recent-posts
can_compress_scripts
widget_recent-comments
...

Browser metrics Passed 4 tests

A check of browser resources used by WP-Nafudakake Dojo Rank Board Generator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲20113.58 ▼0.735.71 ▲4.0639.13 ▼2.03
Dashboard /wp-admin2,241 ▲504.88 ▲0.00110.85 ▲6.7940.14 ▼1.40
Posts /wp-admin/edit.php2,127 ▲382.00 ▼0.0140.35 ▲5.4834.45 ▲1.69
Add New Post /wp-admin/post-new.php1,554 ▲3518.23 ▼5.03610.89 ▼25.9651.10 ▲1.14
Media Library /wp-admin/upload.php1,423 ▲324.18 ▼0.0194.53 ▼4.8141.43 ▼1.87
Instructions /wp-admin/admin.php?page=wpnafu_menu_handle9042.7866.6329.14
Editor /wp-admin/admin.php?page=wpnafu_editor_handle8662.0323.2620.84
Settings /wp-admin/admin.php?page=wpnafu_settings_handle1,2722.0624.0831.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 13 options in the database
    • widget_theysaidso_widget
    • nafu_rowcount
    • theysaidso_admin_options
    • widget_recent-comments
    • nafu_slatspacing
    • can_compress_scripts
    • nafu_slatheight
    • nafu_layouttype
    • db_upgraded
    • nafu_fontsize
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=wpnafu_editor_handle
    • > Warning in wp-content/plugins/wp-nafudakake-dojo-rank-board-generator/code/admin.php+248
    count(): Parameter must be an array or an object that implements Countable

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpnafu_settings_handle
    • > Network (severe)
    wp-content/plugins/wp-nafudakake-dojo-rank-board-generator/styles/wp-nafu-admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpnafu_settings_handle
    • > Network (severe)
    wp-content/plugins/wp-nafudakake-dojo-rank-board-generator/code/wp-nafu-admin.js - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% 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
8 plugin tags: school, martial art, students, members, shortcode...

wp-nafudakake-dojo-rank-board-generator/wp-nafudakake.php 77% from 13 tests

The main PHP file in "WP-Nafudakake Dojo Rank Board Generator" ver. 2.01 11/14/2017... adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "2.01 11/14/2017...")
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-nafudakake-dojo-rank-board-generator.php" instead of "wp-nafudakake.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 323 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
There were no executable files found in this plugin1,795 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript316554564
JSON11360482
PHP5161101463
CSS17827286

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions24
▷ Named functions24100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/trash-512.png11.36KB5.01KB▼ 55.93%