84% weclapp

Code Review | weclapp

WordPress plugin weclapp scored 84% from 54 tests.

About plugin

  • Plugin page: weclapp
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Apr 8, 2020
  • Number of updates: 45
  • Update frequency: every 38.2 days
  • Top authors: weclapp (80%)lukask (15.56%)labo28 (8.89%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 2,546 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
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲2.13ms] Passed 4 tests

A check of server-side resources used by weclapp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1944.61 ▲4.05
Dashboard /wp-admin3.51 ▲0.2152.69 ▼0.95
Posts /wp-admin/edit.php3.62 ▲0.2756.28 ▲7.03
Add New Post /wp-admin/post-new.php6.09 ▲0.20113.93 ▲21.03
Media Library /wp-admin/upload.php3.43 ▲0.2137.81 ▼1.63
weclapp /wp-admin/options-general.php?page=weclapp-settings3.4055.11

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 14 new options
New WordPress options
domain_name
display_sort
db_upgraded
widget_recent-posts
api_token
display_alignment
can_compress_scripts
success_message
theysaidso_admin_options
contact_placement
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for weclapp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲7913.77 ▲0.435.97 ▲3.8943.35 ▲1.25
Dashboard /wp-admin2,210 ▲45.86 ▲1.03102.86 ▼9.3040.44 ▼2.22
Posts /wp-admin/edit.php2,096 ▲41.98 ▼0.0642.50 ▲4.2135.18 ▲3.16
Add New Post /wp-admin/post-new.php1,544 ▲223.07 ▲4.79614.33 ▼24.3548.97 ▼7.76
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0696.20 ▼12.8344.49 ▼1.31
weclapp /wp-admin/options-general.php?page=weclapp-settings8062.0326.0534.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • display_sort
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 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/weclapp/weclapp.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: cloud, helpdesk, webinar, campaign, ticketing...

weclapp/weclapp.php Passed 13 tests

This is the main PHP file of "weclapp" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
This plugin integrates weclapp functionality into wordpress CMS

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
Everything looks great! No dangerous files found in this plugin3,461 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS2420511,724
PO File6403578773
PHP477137758
JavaScript1730137
Markdown138069

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions36
▷ Named functions36100.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icons/new_select_inactive_hover.png0.23KB0.23KB0.42%
assets/icons/action_arrowup_normal.png0.34KB0.33KB▼ 1.74%
assets/icons/new_select_active_normal.png0.23KB0.23KB▼ 0.85%
assets/icons/new_select_inactive_normal.png0.12KB0.12KB0.00%
assets/icons/action_arrowdown_normal.png0.35KB0.34KB▼ 2.54%