10% more-file-types

Code Review | More File Types

WordPress plugin More File Types scored10%from 54 tests.

About plugin

  • Plugin page: more-file-types
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: Nov 8, 2012
  • Latest release: Jan 29, 2013
  • Number of updates: 6
  • Update frequency: every 13.8 days
  • Top authors: globalnet-1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /848 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/more-file-types/more-file-types.php+62
    Use of undefined constant our_custom_check_filetype_and_ext - assumed 'our_custom_check_filetype_and_ext' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.91ms] Passed 4 tests

A check of server-side resources used by More File Types
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.66 ▼36.53
Dashboard /wp-admin2.05 ▼1.265.92 ▼47.36
Posts /wp-admin/edit.php2.05 ▼1.315.04 ▼46.40
Add New Post /wp-admin/post-new.php2.05 ▼3.847.87 ▼93.36
Media Library /wp-admin/upload.php2.05 ▼1.185.33 ▼33.93
More File Types /wp-admin/options-general.php?page=mft_settings2.055.67

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

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

Browser metrics Passed 4 tests

A check of browser resources used by More File Types
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.74 ▲0.151.61 ▼0.2640.93 ▼9.75
Dashboard /wp-admin2,228 ▲255.88 ▲0.96112.58 ▲8.6038.32 ▼7.07
Posts /wp-admin/edit.php2,107 ▲71.99 ▼0.1038.33 ▼0.9735.30 ▼8.34
Add New Post /wp-admin/post-new.php1,548 ▲1723.09 ▲0.09644.84 ▼11.0073.84 ▼3.77
Media Library /wp-admin/upload.php1,401 ▲44.20 ▲0.00103.57 ▼16.6449.86 ▲2.08
More File Types /wp-admin/options-general.php?page=mft_settings8312.0223.1334.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/more-file-types/more-file-types.php+62
    Use of undefined constant our_custom_check_filetype_and_ext - assumed 'our_custom_check_filetype_and_ext' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=mft_settings
    • > Warning in wp-content/plugins/more-file-types/more-file-types.php+62
    Use of undefined constant our_custom_check_filetype_and_ext - assumed 'our_custom_check_filetype_and_ext' (this will throw an Error in a future version of PHP)

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/more-file-types/more-file-types.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
There were no plugin tags found

more-file-types/more-file-types.php Passed 13 tests

The main PHP script in "More File Types" version 0.1.2 is automatically included on every request by WordPress
36 characters long description:
Allow more file types to be uploaded

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
Success! There were no dangerous files found in this plugin62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171362

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions4
▷ Named functions4100.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
No PNG files were detected