94% stream-to-papertrail

Code Review | Stream to Papertrail

WordPress plugin Stream to Papertrail scored 94% from 54 tests.

About plugin

  • Plugin page: stream-to-papertrail
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 5.8.1
  • First release: Sep 7, 2015
  • Latest release: Sep 8, 2015
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: japh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,077 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼139.71ms] Passed 4 tests

A check of server-side resources used by Stream to Papertrail
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1443.21 ▲22.15
Dashboard /wp-admin3.08 ▲0.0348.23 ▼0.56
Posts /wp-admin/edit.php3.13 ▲0.0347.15 ▼2.57
Add New Post /wp-admin/post-new.php5.45 ▲0.0292.02 ▼553.82
Media Library /wp-admin/upload.php3.03 ▲0.0233.91 ▼1.87

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Stream to Papertrail: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,722 ▲12615.92 ▲0.2614.22 ▲4.0749.56 ▲2.30
Dashboard /wp-admin3,001 ▲705.98 ▼0.00144.37 ▼11.82114.62 ▲2.17
Posts /wp-admin/edit.php2,748 ▲92.72 ▼0.1369.47 ▼1.8889.81 ▼0.26
Add New Post /wp-admin/post-new.php1,689 ▼1,94718.80 ▲3.84392.22 ▼80.34103.71 ▼3.21
Media Library /wp-admin/upload.php1,816 ▲95.02 ▼0.01148.32 ▼3.62114.85 ▼3.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stream-to-papertrail/stream-papertrail.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

stream-to-papertrail/stream-papertrail.php 92% from 13 tests

"Stream to Papertrail" version 0.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("stream-to-papertrail.php" instead of "stream-papertrail.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected163 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24211125
Markdown123038

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin