84% mm-dashboard-sharing

Code Review | MM Dashboard Sharing

WordPress plugin MM Dashboard Sharing scored84%from 54 tests.

About plugin

  • Plugin page: mm-dashboard-sharing
  • Plugin version: 2.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.8
  • WordPress version: 6.3.1
  • First release: Dec 1, 2015
  • Latest release: Aug 21, 2017
  • Number of updates: 24
  • Update frequency: every 26.2 days
  • Top authors: marounmelhem (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /1,174 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by MM Dashboard Sharing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0344.48 ▲1.36
Dashboard /wp-admin3.61 ▲0.0448.79 ▼5.62
Posts /wp-admin/edit.php3.72 ▲0.0455.99 ▲1.14
Add New Post /wp-admin/post-new.php6.21 ▲0.0687.04 ▼8.59
Media Library /wp-admin/upload.php3.53 ▲0.0438.50 ▲0.07

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by MM Dashboard Sharing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲3014.75 ▲0.111.69 ▼0.4742.71 ▲1.03
Dashboard /wp-admin2,225 ▲485.74 ▲0.0497.58 ▲10.4742.97 ▼3.62
Posts /wp-admin/edit.php2,145 ▲422.06 ▲0.0538.30 ▼0.7236.42 ▼1.59
Add New Post /wp-admin/post-new.php1,557 ▲3123.32 ▲5.73640.74 ▼45.2550.99 ▼2.71
Media Library /wp-admin/upload.php1,421 ▲214.26 ▲0.03106.16 ▼7.4544.14 ▼1.90

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mm-dashboard-sharing/includes/src/src-functions.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mm-dashboard-sharing/includes/options/options-functions.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mm-dashboard-sharing/includes/main/main-functions.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === mm-dashboard-sharing === )
The official readme.txt might help

mm-dashboard-sharing/mm-dashboard-sharing.php Passed 13 tests

The main PHP file in "MM Dashboard Sharing" ver. 2.11 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
Simple way to add the ability to share posts directly from the dashboard panel.

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
Good job! No executable or dangerous file extensions detected278 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP44250163
CSS216858
JavaScript291057

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin