10% hilflo-most-shared

Code Review | Most social share

WordPress plugin Most social share scored 10% from 54 tests.

About plugin

  • Plugin page: hilflo-most-shared
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 12, 2013
  • Latest release: Apr 12, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: hilflo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,212 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/hilflo-most-shared/hilflo_most_shared.php+156
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.86ms] Passed 4 tests

Analyzing server-side resources used by Most social share
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.47 ▼40.71
Dashboard /wp-admin2.05 ▼1.265.96 ▼43.52
Posts /wp-admin/edit.php2.05 ▼1.316.78 ▼43.50
Add New Post /wp-admin/post-new.php2.05 ▼3.845.45 ▼83.69
Media Library /wp-admin/upload.php2.05 ▼1.185.33 ▼29.75

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Most social share
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.37 ▼0.011.67 ▼0.4049.19 ▲4.62
Dashboard /wp-admin2,206 ▲205.90 ▲0.93100.27 ▼13.7043.41 ▲4.73
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0338.51 ▲3.1137.31 ▲4.29
Add New Post /wp-admin/post-new.php1,542 ▲2818.40 ▲0.71615.73 ▼75.6455.72 ▲2.64
Media Library /wp-admin/upload.php1,388 ▼34.15 ▼0.0595.63 ▼10.7642.05 ▼7.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/hilflo-most-shared/hilflo_most_shared.php+156
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_h_most_shared_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hilflo-most-shared/hilflo_most_shared.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === hilflo-most-shared === )
The official readme.txt is a good inspiration

hilflo-most-shared/hilflo_most_shared.php 92% from 13 tests

The main PHP script in "Most social share" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("hilflo-most-shared.php" instead of "hilflo_most_shared.php")

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

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin