84% lh-web-share

Code Review | LH Web Share

WordPress plugin LH Web Share scored 84% from 54 tests.

About plugin

  • Plugin page: lh-web-share
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Dec 24, 2017
  • Latest release: Dec 24, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 651 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by LH Web Share
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.30 ▼4.25
Dashboard /wp-admin3.32 ▲0.0150.86 ▲0.90
Posts /wp-admin/edit.php3.37 ▲0.0146.23 ▲1.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.87 ▼29.92
Media Library /wp-admin/upload.php3.24 ▲0.0135.18 ▲2.88

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

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

Browser metrics Passed 4 tests

A check of browser resources used by LH Web Share
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.71 ▼0.701.71 ▲0.1442.09 ▲2.12
Dashboard /wp-admin2,200 ▲95.83 ▼0.0792.54 ▼6.2537.75 ▼7.68
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0734.36 ▼8.6633.30 ▼4.33
Add New Post /wp-admin/post-new.php1,514 ▼1917.54 ▼5.89690.47 ▲68.4463.20 ▲3.16
Media Library /wp-admin/upload.php1,385 ▼34.20 ▼0.0893.97 ▼2.6545.45 ▲1.37

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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 no errors were found, 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
Please fix the following items
  • 1× 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/lh-web-share/lh-web-share.php:121

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: social share, sharing, shareas, web share

lh-web-share/lh-web-share.php Passed 13 tests

"LH Web Share" version 1.00's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
29 characters long description:
Get rid of stupid share icons

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin71 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1641951
JavaScript110020

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods250.00%
▷ Protected methods00.00%
▷ Private methods250.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin