84% mstore-api

Code Review | MStore API

WordPress plugin MStore API scored84%from 54 tests.

About plugin

  • Plugin page: mstore-api
  • Plugin version: 4.10.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.0
  • WordPress version: 6.3.1
  • First release: Sep 23, 2019
  • Latest release: Oct 30, 2023
  • Number of updates: 398
  • Update frequency: every 3.8 days
  • Top authors: inspireui (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

4,000+ active /194,215 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲3.60MB] [CPU: ▲19.94ms] Passed 4 tests

This is a short check of server-side resources used by MStore API
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.08 ▲3.6167.53 ▲26.54
Dashboard /wp-admin6.92 ▲3.5766.52 ▲5.24
Posts /wp-admin/edit.php6.97 ▲3.6173.94 ▲25.64
Add New Post /wp-admin/post-new.php9.85 ▲3.96125.67 ▲25.44
Media Library /wp-admin/upload.php6.84 ▲3.6161.16 ▲23.45

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 187 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for MStore API
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.25 ▼0.161.93 ▲0.0442.61 ▼1.76
Dashboard /wp-admin2,208 ▲345.62 ▼0.0392.64 ▲1.9742.52 ▼0.42
Posts /wp-admin/edit.php2,116 ▲161.97 ▼0.0338.56 ▼1.9434.47 ▼0.87
Add New Post /wp-admin/post-new.php1,541 ▲1323.06 ▼0.14690.29 ▼122.2356.24 ▼0.90
Media Library /wp-admin/upload.php1,419 ▲224.26 ▲0.05101.32 ▼20.4542.03 ▼6.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 182× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mstore-api/controllers/flutter-notification.php:28
    • > PHP Notice
      Constant SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NSECBYTES already defined in wp-content/plugins/mstore-api/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 20
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core32_Util' not found in wp-content/plugins/mstore-api/vendor/paragonie/sodium_compat/src/Core32/ChaCha20/Ctx.php:10
    • > PHP Notice
      Constant SODIUM_CRYPTO_PWHASH_OPSLIMIT_SENSITIVE already defined in wp-content/plugins/mstore-api/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 62
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core32_ChaCha20' not found in wp-content/plugins/mstore-api/vendor/paragonie/sodium_compat/src/Core32/HChaCha20.php:10
    • > PHP Notice
      Constant SODIUM_CRYPTO_SIGN_BYTES already defined in wp-content/plugins/mstore-api/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 84
    • > PHP Notice
      Constant SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE already defined in wp-content/plugins/mstore-api/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mstore-api/controllers/flutter-woo.php:28
    • > PHP Notice
      Constant SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING already defined in wp-content/plugins/mstore-api/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 8
    • > PHP Notice
      Constant SODIUM_CRYPTO_SIGN_SECRETKEYBYTES already defined in wp-content/plugins/mstore-api/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 87

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: android, inspireui, fluxstore, mstore, ios...

mstore-api/mstore-api.php 92% from 13 tests

The primary PHP file in "MStore API" version 4.10.7 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin43,986 lines of code in 178 files:
LanguageFilesBlank linesComment linesLines of code
PHP1645,35513,41542,633
Markdown42150742
JSON600437
JavaScript180149
XML10019
Bourne Shell1203
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity31.00
▷ Minimum class complexity1.00
▷ Maximum class complexity402.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes143
▷ Abstract classes2013.99%
▷ Concrete classes12386.01%
▷ Final classes00.00%
Methods1,219
▷ Static methods59048.40%
▷ Public methods1,10690.73%
▷ Protected methods746.07%
▷ Private methods393.20%
Functions378
▷ Named functions22258.73%
▷ Anonymous functions15641.27%
Constants351
▷ Global constants154.27%
▷ Class constants33695.73%
▷ Public constants32797.32%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin