77% likeablepress-sendfox-for-divi

Code Review | LikeablePress Integration of SendFox for Divi

WordPress plugin LikeablePress Integration of SendFox for Divi scored77%from 54 tests.

About plugin

  • Plugin page: likeablepress-sen...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5.1
  • WordPress version: 6.3.1
  • First release: Jul 14, 2020
  • Latest release: Oct 2, 2020
  • Number of updates: 4
  • Update frequency: every 20.5 days
  • Top authors: likeablepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,141 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.59ms] Passed 4 tests

A check of server-side resources used by LikeablePress Integration of SendFox for Divi
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.27 ▼1.96
Dashboard /wp-admin3.37 ▲0.0745.26 ▼7.14
Posts /wp-admin/edit.php3.48 ▲0.1347.80 ▲0.59
Add New Post /wp-admin/post-new.php5.95 ▲0.0788.13 ▼13.83
Media Library /wp-admin/upload.php3.29 ▲0.0734.59 ▲0.78

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by LikeablePress Integration of SendFox for Divi
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲14013.61 ▼0.788.21 ▲6.0039.26 ▼5.56
Dashboard /wp-admin2,219 ▲345.80 ▲0.86106.73 ▲4.8772.82 ▲32.43
Posts /wp-admin/edit.php2,102 ▲132.04 ▼0.0136.63 ▼6.9631.77 ▼5.19
Add New Post /wp-admin/post-new.php1,535 ▲123.18 ▲0.10722.92 ▲132.6454.83 ▼0.28
Media Library /wp-admin/upload.php1,401 ▲104.21 ▲0.0393.70 ▼1.9167.30 ▲26.89

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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× PHP files output text when accessed directly:
    • > /wp-content/plugins/likeablepress-sendfox-for-divi/divi-sendfox-wp-admin.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/likeablepress-sendfox-for-divi/divi-sendfox-wp-admin.php:349
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/likeablepress-sendfox-for-divi/includes/SenfoxExtension.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/likeablepress-sendfox-for-divi/includes/modules/SendFox/SendFox.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: newsletter, divi module, sendfox, email, opt-in form...

likeablepress-sendfox-for-divi/my-sendfox-extension.php 69% from 13 tests

This is the main PHP file of "LikeablePress Integration of SendFox for Divi" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("likeablepress-sendfox-for-divi.php" instead of "my-sendfox-extension.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)

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
No dangerous file extensions were detected2,270 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP53992211,604
JSX210141292
CSS39045254
JavaScript62614110
SVG10010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity19.67
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity6.60
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.77MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon5.png1.65KB1.59KB▼ 3.20%
assets/img/banner-1544x500.png528.71KB141.03KB▼ 73.33%
assets/img/icon1.png0.68KB0.66KB▼ 2.74%
assets/img/logo.png31.80KB16.83KB▼ 47.09%
assets/img/banner-772x250.png186.08KB47.21KB▼ 74.63%