73% crush-counter-discordapp

Code Review | Crush Counter DiscordApp

WordPress plugin Crush Counter DiscordApp scored73%from 54 tests.

About plugin

  • Plugin page: crush-counter-dis...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2016
  • Latest release: Oct 20, 2016
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: djavanryuuzaki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /872 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Crush Counter DiscordApp
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.79 ▲9.62
Dashboard /wp-admin3.38 ▲0.0744.93 ▼0.97
Posts /wp-admin/edit.php3.49 ▲0.1344.81 ▼1.98
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.55 ▼12.40
Media Library /wp-admin/upload.php3.30 ▲0.0736.41 ▲1.12
CCN DiscorApp /wp-admin/options-general.php?page=crush-counter-discordapp3.3032.03

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Crush Counter DiscordApp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.34 ▼1.397.50 ▲5.8739.14 ▼0.71
Dashboard /wp-admin2,196 ▲255.53 ▼0.0582.41 ▼5.3940.86 ▼1.20
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0037.30 ▼3.5635.25 ▲0.30
Add New Post /wp-admin/post-new.php1,529 ▲323.21 ▼0.48642.43 ▼17.8652.20 ▼3.43
Media Library /wp-admin/upload.php1,398 ▼24.20 ▲0.0797.56 ▼20.0042.23 ▼6.55
CCN DiscorApp /wp-admin/options-general.php?page=crush-counter-discordapp1,0653.2753.1425.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=crush-counter-discordapp
    • > Notice in wp-content/plugins/crush-counter-discordapp/admin/partials/crush-counter-discordapp-admin-display.php+34
    Trying to access array offset on value of type bool

SRP 0% 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 fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/crush-counter-discordapp/public/partials/crush-counter-discordapp-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/crush-counter-discordapp/admin/partials/crush-counter-discordapp-admin-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Donate link: Please fix this invalid url: "www.iware.com.br"
You can take inspiration from this readme.txt

crush-counter-discordapp/crush-counter-discordapp.php Passed 13 tests

The entry point to "Crush Counter DiscordApp" version 1.0.1 is a PHP file that has certain tags in its header comment area
118 characters long description:
Fornece integração com algumas funcionalidades do DiscordApp. Gives integration with some DiscorApp Functionalities.

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 plugin402 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP13206519302
PO File2161859
JavaScript2206541
CSS2080

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2681.25%
▷ Protected methods00.00%
▷ Private methods618.75%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png35.61KB8.42KB▼ 76.36%
assets/screenshot-1.png54.30KB19.95KB▼ 63.26%
assets/icon-256x256.png77.70KB25.73KB▼ 66.89%