84% minimum-viable-sharing-meta

Code Review | Minimum Viable Sharing Meta

WordPress plugin Minimum Viable Sharing Meta scored84%from 54 tests.

About plugin

  • Plugin page: minimum-viable-sh...
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.6
  • WordPress version: 6.3.1
  • First release: Jan 2, 2018
  • Latest release: Jun 6, 2018
  • Number of updates: 5
  • Update frequency: every 31.8 days
  • Top authors: norcross (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,357 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.69ms] Passed 4 tests

Analyzing server-side resources used by Minimum Viable Sharing Meta
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.42 ▼2.57
Dashboard /wp-admin3.49 ▲0.1851.83 ▼0.52
Posts /wp-admin/edit.php3.60 ▲0.2449.27 ▼5.05
Add New Post /wp-admin/post-new.php6.09 ▲0.2088.55 ▼14.63
Media Library /wp-admin/upload.php3.41 ▲0.1841.80 ▲4.65
Sharing Meta Tags /wp-admin/themes.php?page=minshare-meta-settings3.4139.19

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Minimum Viable Sharing Meta
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.41 ▼0.271.82 ▼0.1044.25 ▼1.78
Dashboard /wp-admin2,222 ▲255.83 ▼0.0798.49 ▼20.8639.45 ▼7.65
Posts /wp-admin/edit.php2,101 ▲12.02 ▲0.0334.60 ▼4.7032.17 ▼2.41
Add New Post /wp-admin/post-new.php6,295 ▲4,75018.96 ▼4.35913.56 ▲231.1474.10 ▲20.72
Media Library /wp-admin/upload.php1,401 ▲14.24 ▲0.05106.41 ▼0.6144.44 ▼2.50
Sharing Meta Tags /wp-admin/themes.php?page=minshare-meta-settings1,0513.0941.8829.30

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/minimum-viable-sharing-meta/includes/uninstall.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/minimum-viable-sharing-meta/includes/install.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: sharing tags, meta tags

minimum-viable-sharing-meta/minimum-viable-sharing-meta.php 92% from 13 tests

The main PHP file in "Minimum Viable Sharing Meta" ver. 0.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin954 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP10376705803
CSS219065
JavaScript2274054
Markdown214032

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity25.43
▷ Minimum class complexity11.00
▷ Maximum class complexity38.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods45
▷ Static methods1635.56%
▷ Public methods4497.78%
▷ Protected methods00.00%
▷ Private methods12.22%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin