90% like-share-zalo-button

Code Review | Like Share Zalo Button

WordPress plugin Like Share Zalo Button scored90%from 54 tests.

About plugin

  • Plugin page: like-share-zalo-b...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2017
  • Latest release: Dec 28, 2017
  • Number of updates: 9
  • Update frequency: every 2.2 days
  • Top authors: phankimi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /7,810 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: ▲0.01MB] [CPU: ▼4.94ms] Passed 4 tests

Analyzing server-side resources used by Like Share Zalo Button
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.07 ▼4.02
Dashboard /wp-admin3.32 ▲0.0249.23 ▼3.59
Posts /wp-admin/edit.php3.37 ▲0.0149.35 ▼2.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.17 ▼9.36
Media Library /wp-admin/upload.php3.24 ▲0.0138.64 ▲4.89
Zalo Options /wp-admin/options-general.php?page=zalo-option3.2133.84

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Like Share Zalo Button
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14313.94 ▼0.4127.49 ▲25.9042.74 ▲1.05
Dashboard /wp-admin2,196 ▲195.51 ▼0.1490.13 ▼1.0937.09 ▼9.18
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0634.63 ▼5.1935.28 ▼3.00
Add New Post /wp-admin/post-new.php1,529 ▼623.04 ▲4.57667.91 ▲21.4259.60 ▼7.14
Media Library /wp-admin/upload.php1,407 ▲74.13 ▼0.03112.72 ▼11.8947.02 ▼0.78
Zalo Options /wp-admin/options-general.php?page=zalo-option8221.9926.3229.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: social button, zalo, share button, social

like-share-zalo-button/like-share-zalo-button.php Passed 13 tests

The main PHP file in "Like Share Zalo Button" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Displays Zalo like share button on WordPress content

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2131457

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin