90% post-by-email-links

Code Review | Post By Email Links

WordPress plugin Post By Email Links scored90%from 54 tests.

About plugin

  • Plugin page: post-by-email-links
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.5
  • WordPress version: 6.3.1
  • First release: Nov 18, 2013
  • Latest release: Apr 1, 2016
  • Number of updates: 11
  • Update frequency: every 78.7 days
  • Top authors: barryceelen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,305 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Post By Email Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.80 ▲0.56
Dashboard /wp-admin3.31 ▼0.0443.13 ▼17.18
Posts /wp-admin/edit.php3.36 ▲0.0045.06 ▲0.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.14 ▼3.38
Media Library /wp-admin/upload.php3.23 ▲0.0035.80 ▲0.97

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post By Email Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.27 ▼0.111.86 ▲0.2940.17 ▲0.37
Dashboard /wp-admin2,192 ▲215.62 ▲0.0793.24 ▲6.6737.61 ▼6.20
Posts /wp-admin/edit.php2,100 ▲32.02 ▼0.0139.88 ▲3.2436.13 ▼0.91
Add New Post /wp-admin/post-new.php1,526 ▼523.25 ▲0.07663.05 ▲44.5655.36 ▲7.24
Media Library /wp-admin/upload.php1,403 ▲94.19 ▲0.0092.92 ▼4.3143.58 ▼2.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: linkblog, email, post-by-email, post format, link

post-by-email-links/post-by-email-links.php 92% from 13 tests

"Post By Email Links" version 0.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,320 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4633951,315
Markdown1205

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.55
Average class complexity109.00
▷ Minimum class complexity7.00
▷ Maximum class complexity211.00
Average method complexity8.45
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods1137.93%
▷ Protected methods1758.62%
▷ Private methods13.45%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin