10% free-post-mail

Code Review | Free Post Mail

WordPress plugin Free Post Mail scored10%from 54 tests.

About plugin

  • Plugin page: free-post-mail
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 26, 2017
  • Latest release: Sep 26, 2017
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: masaakitanaka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,344 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function wpdb::escape is deprecated since version 3.6.0! Use wpdb::prepare() or esc_sql() instead.

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.47ms] Passed 4 tests

A check of server-side resources used by Free Post Mail
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0249.89 ▲10.11
Dashboard /wp-admin3.32 ▲0.0148.66 ▼4.46
Posts /wp-admin/edit.php3.37 ▲0.0150.44 ▲1.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.10 ▼12.53
Media Library /wp-admin/upload.php3.24 ▲0.0135.40 ▼2.22

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables
wp_freePostMailTable
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
freePostMail_db_version
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Free Post Mail
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.28 ▼0.111.76 ▲0.0339.88 ▼4.11
Dashboard /wp-admin2,210 ▲305.58 ▲0.0484.14 ▼5.3938.25 ▼7.72
Posts /wp-admin/edit.php2,112 ▲122.03 ▲0.0040.55 ▲4.8538.12 ▼3.40
Add New Post /wp-admin/post-new.php1,416 ▼11220.54 ▼2.41593.39 ▼44.8462.53 ▲2.37
Media Library /wp-admin/upload.php1,415 ▲124.20 ▼0.0098.67 ▼2.4845.81 ▲3.78

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
The official readme.txt might help

free-post-mail/index.php 85% from 13 tests

The principal PHP file in "Free Post Mail" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("free-post-mail.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,149 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript331578532
PHP417917341
CSS21520276

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity23.00
▷ Minimum class complexity5.00
▷ Maximum class complexity41.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin