74% monster-downloader

Code Review | Monster Downloader

WordPress plugin Monster Downloader scored74%from 54 tests.

About plugin

  • Plugin page: monster-downloader
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 7, 2022
  • Latest release: Nov 14, 2022
  • Number of updates: 3
  • Update frequency: every 4.3 days
  • Top authors: pluginbazar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /310 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.51MB] [CPU: ▲4.76ms] Passed 4 tests

Server-side resources used by Monster Downloader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.14 ▲1.6852.57 ▲11.09
Dashboard /wp-admin4.84 ▲1.5462.86 ▲8.93
Posts /wp-admin/edit.php4.89 ▲1.5460.83 ▲3.52
Add New Post /wp-admin/post-new.php7.38 ▲1.49102.55 ▼4.49
Media Library /wp-admin/upload.php4.70 ▲1.4754.06 ▲18.06
Monster Downloader /wp-admin/tools.php?page=wp-downloader-reports4.6751.31

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 92 new files
Database: 1 new table, 6 new options
New tables
wp_monster_downloader_reports
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Monster Downloader: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1414.33 ▲0.221.73 ▼0.1137.77 ▼3.21
Dashboard /wp-admin2,203 ▲235.51 ▼0.1391.92 ▲4.4640.52 ▼2.25
Posts /wp-admin/edit.php2,111 ▲142.01 ▼0.0135.81 ▲0.3335.26 ▼3.04
Add New Post /wp-admin/post-new.php1,545 ▲518.05 ▼5.09655.78 ▲0.2572.64 ▲21.99
Media Library /wp-admin/upload.php1,414 ▲144.18 ▼0.0497.84 ▼27.3844.15 ▼9.58
Monster Downloader /wp-admin/tools.php?page=wp-downloader-reports9392.0326.3627.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_monster_downloader_reports
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PBSettings_Abstract' not found in wp-content/plugins/monster-downloader/includes/sdk/settings/classes/fields.class.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PBSettings_Abstract' not found in wp-content/plugins/monster-downloader/includes/sdk/settings/classes/admin-options.class.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No plugin tags provided

monster-downloader/monster-downloader.php Passed 13 tests

The primary PHP file in "Monster Downloader" version 1.0.0 is used by WordPress to initiate all plugin functionality
52 characters long description:
This plugin for download WordPress plugin and theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin20,093 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
PHP732,8171,3798,258
JavaScript61,3235066,688
CSS59465235,102
Markdown128043
SVG2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity25.97
▷ Minimum class complexity1.00
▷ Maximum class complexity160.00
Average method complexity6.27
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes67
▷ Abstract classes22.99%
▷ Concrete classes6597.01%
▷ Final classes00.00%
Methods319
▷ Static methods4514.11%
▷ Public methods30294.67%
▷ Protected methods00.00%
▷ Private methods175.33%
Functions24
▷ Named functions2291.67%
▷ Anonymous functions28.33%
Constants5
▷ Global constants5100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/sdk/settings/assets/images/checkerboard.png2.29KB2.54KB0.00%