78% share-mxh

Code Review | Share MXH

WordPress plugin Share MXH scored78%from 54 tests.

About plugin

  • Plugin page: share-mxh
  • Plugin version: 1.2
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 10, 2020
  • Latest release: Dec 25, 2020
  • Number of updates: 5
  • Update frequency: every 3.8 days
  • Top authors: nhomcaodem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.05ms] Passed 4 tests

This is a short check of server-side resources used by Share MXH
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.37 ▲1.46
Dashboard /wp-admin3.31 ▲0.0147.40 ▼2.09
Posts /wp-admin/edit.php3.36 ▲0.0148.50 ▲1.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.73 ▼6.65
Media Library /wp-admin/upload.php3.23 ▲0.0135.91 ▼0.69
Share MXH /wp-admin/options-general.php?page=sharemxh-options3.1832.23

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Share MXH
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.29 ▼1.351.76 ▲0.1841.98 ▼1.84
Dashboard /wp-admin2,210 ▲214.86 ▼0.08108.42 ▼5.9441.72 ▼0.78
Posts /wp-admin/edit.php2,093 ▲12.01 ▲0.0339.98 ▼1.0534.12 ▼2.03
Add New Post /wp-admin/post-new.php1,526 ▲723.05 ▼0.07656.32 ▲4.3550.82 ▼7.29
Media Library /wp-admin/upload.php1,392 ▲14.20 ▲0.0397.00 ▼2.5342.50 ▼2.82
Share MXH /wp-admin/options-general.php?page=sharemxh-options1,0382.0222.4244.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 26 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sharemxh-options
    • > Notice in wp-content/plugins/share-mxh/inc/sharemxh-admin-page.php+95
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/share-mxh/inc/sharemxh-content.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/share-mxh/inc/sharemxh-admin-page.php:108
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/share-mxh/share-mxh.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #4, #5 in share-mxh/assets to your readme.txt
Please take inspiration from this readme.txt

share-mxh/share-mxh.php Passed 13 tests

The main file in "Share MXH" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
38 characters long description:
Share on social networks for articles.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin318 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP3922166
PO File24896117
CSS10828
SVG7007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions7
▷ Named functions7100.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
There were not PNG files found in your plugin