79% mediafire-filedrop-manager

Code Review | MediaFire FileDrop Manager

WordPress plugin MediaFire FileDrop Manager scored79%from 54 tests.

About plugin

  • Plugin page: mediafire-filedro...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2
  • WordPress version: 6.3.1
  • First release: Sep 9, 2013
  • Latest release: Aug 8, 2015
  • Number of updates: 15
  • Update frequency: every 46.5 days
  • Top authors: bhwebworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,357 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
Installer ran successfully

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

This is a short check of server-side resources used by MediaFire FileDrop Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.86 ▼0.95
Dashboard /wp-admin3.41 ▲0.1047.30 ▼9.86
Posts /wp-admin/edit.php3.52 ▲0.1645.27 ▼3.65
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.14 ▼7.45
Media Library /wp-admin/upload.php3.33 ▲0.1037.24 ▲0.34
Linking to Your Files /wp-admin/admin.php?page=mediafire-filedrop-manager-help3.3037.02
MediaFire FileDrops /wp-admin/options-general.php?page=mediafire-filedrop-manager-settings3.2728.64
FileDrops /wp-admin/admin.php?page=mediafire-filedrop-manager3.2730.47

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for MediaFire FileDrop Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.58 ▼0.791.70 ▲0.0238.30 ▼5.51
Dashboard /wp-admin2,239 ▲485.85 ▲0.96104.63 ▼2.9284.94 ▲42.17
Posts /wp-admin/edit.php2,116 ▲272.02 ▼0.0233.51 ▼6.4134.24 ▼2.87
Add New Post /wp-admin/post-new.php1,539 ▲617.56 ▼5.48777.20 ▲84.5355.34 ▼0.87
Media Library /wp-admin/upload.php1,415 ▲274.17 ▼0.03106.02 ▼1.2144.31 ▲2.22
Linking to Your Files /wp-admin/admin.php?page=mediafire-filedrop-manager-help8872.0125.9428.16
MediaFire FileDrops /wp-admin/options-general.php?page=mediafire-filedrop-manager-settings1,0322.0229.2429.01
FileDrops /wp-admin/admin.php?page=mediafire-filedrop-manager8272.0124.0625.82

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=mediafire-filedrop-manager-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=mediafire-filedrop-manager-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 30 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mediafire-filedrop-manager
    • > Notice in wp-content/plugins/mediafire-filedrop-manager/mediafire-filedrop-manager.php+120
    Trying to access array offset on value of type bool

SRP 50% from 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
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mediafire-filedrop-manager/includes/mediafire-filedrop-manager-help.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mediafire-filedrop-manager/includes/mediafire-filedrop-manager-settings.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mediafire-filedrop-manager/mediafire-filedrop-manager.php:37

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: mediafire, filedrops, upload files

mediafire-filedrop-manager/mediafire-filedrop-manager.php Passed 13 tests

The entry point to "MediaFire FileDrop Manager" version 0.3 is a PHP file that has certain tags in its header comment area
86 characters long description:
Adds a WordPress admin top-level menu item for easy access to your MediaFire FileDrops

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
There were no executable files found in this plugin546 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3365180530
CSS13016

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-32.png1.99KB1.33KB▼ 33.05%
images/icon-16.png1.43KB0.50KB▼ 65.35%