84% mmm-file-list

Code Review | Mmm Simple File List

WordPress plugin Mmm Simple File List scored84%from 54 tests.

About plugin

  • Plugin page: mmm-file-list
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.9.1
  • WordPress version: 6.3.1
  • First release: Sep 18, 2014
  • Latest release: Feb 28, 2022
  • Number of updates: 56
  • Update frequency: every 48.6 days
  • Top authors: MManifesto (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

2,000+ active /23,664 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.58ms] Passed 4 tests

An overview of server-side resources used by Mmm Simple File List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.63 ▼6.68
Dashboard /wp-admin3.35 ▲0.0548.52 ▼2.22
Posts /wp-admin/edit.php3.40 ▲0.0456.44 ▲8.52
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.20 ▼12.89
Media Library /wp-admin/upload.php3.28 ▲0.0439.53 ▲3.49

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

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

Browser metrics Passed 4 tests

Mmm Simple File List: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.15 ▼1.531.82 ▼0.1042.46 ▲0.68
Dashboard /wp-admin2,206 ▲184.85 ▼0.04104.44 ▼9.2640.90 ▼1.90
Posts /wp-admin/edit.php2,086 ▼61.99 ▲0.0340.34 ▲1.7738.58 ▲0.26
Add New Post /wp-admin/post-new.php1,514 ▼1417.56 ▼0.50688.82 ▲43.0263.96 ▼1.73
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.06109.38 ▲9.5744.73 ▲3.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× 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/mmm-file-list/mm_filelist_plugin.php:445

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 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
2 plugin tags: file list, shortcode

mmm-file-list/mm_filelist_plugin.php 85% from 13 tests

The principal PHP file in "Mmm Simple File List" v. 2.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 332 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mmm-file-list.php" instead of "mm_filelist_plugin.php")

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
Everything looks great! No dangerous files found in this plugin358 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17617358

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin