83% wp-sendfox

Code Review | WP SendFox

WordPress plugin WP SendFox scored83%from 54 tests.

About plugin

  • Plugin page: wp-sendfox
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 6, 2020
  • Latest release: Nov 18, 2023
  • Number of updates: 27
  • Update frequency: every 50.1 days
  • Top authors: bogdanfix (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /11,193 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.10ms] Passed 4 tests

This is a short check of server-side resources used by WP SendFox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1143.69 ▲5.68
Dashboard /wp-admin3.42 ▲0.0746.77 ▼13.29
Posts /wp-admin/edit.php3.53 ▲0.1745.82 ▼2.78
Add New Post /wp-admin/post-new.php6.00 ▲0.1188.02 ▼2.71
Media Library /wp-admin/upload.php3.34 ▲0.1136.78 ▲2.40

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP SendFox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5414.19 ▼0.161.81 ▲0.0945.88 ▼1.27
Dashboard /wp-admin2,218 ▲415.57 ▼0.0686.25 ▼12.0366.11 ▲27.38
Posts /wp-admin/edit.php2,126 ▲231.99 ▲0.0538.09 ▼1.5034.93 ▼6.10
Add New Post /wp-admin/post-new.php1,551 ▲2523.23 ▲0.18658.71 ▲64.62180.78 ▲133.82
Media Library /wp-admin/upload.php1,429 ▲324.19 ▲0.1296.94 ▼5.4071.47 ▲27.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-sendfox/wp-sendfox-admin.php:88
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sendfox/wp-sendfox.php:90
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sendfox/includes/gutenberg/gutenberg-email-optin.php:162
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Core_API_Email_Provider' not found in wp-content/plugins/wp-sendfox/includes/divi-builder/divi-email-provider.php:10

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: woocommerce, api, emails, wp, users...

wp-sendfox/wp-sendfox.php 77% from 13 tests

This is the main PHP file of "WP SendFox" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 196 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,410 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP45962391,993
JavaScript4147173351
CSS23265
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods116.67%
▷ Private methods00.00%
Functions30
▷ Named functions2996.67%
▷ Anonymous functions13.33%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected