78% cresta-facebook-messenger

Code Review | Cresta Social Messenger

WordPress plugin Cresta Social Messenger scored 78% from 54 tests.

About plugin

  • Plugin page: cresta-facebook-m...
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.8
  • WordPress version: 6.3.1
  • First release: Apr 10, 2017
  • Latest release: Jul 14, 2021
  • Number of updates: 106
  • Update frequency: every 14.7 days
  • Top authors: CrestaProject (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active / 48,068 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Cresta Social Messenger
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2341.55 ▲3.93
Dashboard /wp-admin3.54 ▲0.2346.49 ▼0.17
Posts /wp-admin/edit.php3.65 ▲0.2946.92 ▼1.19
Add New Post /wp-admin/post-new.php6.12 ▲0.2488.02 ▲1.25
Media Library /wp-admin/upload.php3.46 ▲0.2334.74 ▲0.90

Server storage [IO: ▲0.21MB] [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, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
crestafacebookmessenger_settings
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cresta Social Messenger
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲14113.58 ▼1.015.50 ▲3.5444.75 ▲4.43
Dashboard /wp-admin2,210 ▲254.84 ▼0.20108.54 ▲5.8640.61 ▼3.02
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0938.98 ▲1.7034.02 ▼2.54
Add New Post /wp-admin/post-new.php6,472 ▲4,93020.31 ▲1.98909.74 ▲303.3167.56 ▲19.23
Media Library /wp-admin/upload.php1,389 ▲14.24 ▲0.0695.75 ▲2.9339.55 ▼0.60
Cresta Social Messenger /wp-admin/cresta-facebook-messenger.php260.440.1013.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cresta-facebook-messenger/uninstall.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/cresta-facebook-messenger.php
    • > Network (severe)
    wp-admin/cresta-facebook-messenger.php - Failed to load resource: the server responded with a status of 404 (Not 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
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Cresta Facebook Messenger Settings Page)
The official readme.txt might help

cresta-facebook-messenger/cresta-facebook-messenger.php 92% from 13 tests

The principal PHP file in "Cresta Social Messenger" v. 1.2.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 239 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,321 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP43327918
CSS320395
XML1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/banner-cresta-social-share-counter.png60.60KB63.49KB0.00%
images/banner-cresta-whatsapp-chat.png6.98KB7.38KB0.00%
images/5-stars.png0.34KB0.39KB0.00%
screenshot-1.png33.77KB34.06KB0.00%
images/banner-cresta-facebook-messenger-pro.png7.52KB7.91KB0.00%