10% rumailer

Code Review | Rumailer

WordPress plugin Rumailer scored 10% from 54 tests.

About plugin

  • Plugin page: rumailer
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 0.0.1-0.0.3
  • WordPress version: 6.3.1
  • First release: Sep 26, 2016
  • Latest release: Sep 27, 2016
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: DeathError (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 834 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/rumailer/rumailer.php+656
    array_intersect(): Expected parameter 1 to be an array, string given

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.48ms] Passed 4 tests

Server-side resources used by Rumailer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.53 ▼22.33
Dashboard /wp-admin3.31 ▲0.0042.98 ▼7.21
Posts /wp-admin/edit.php3.36 ▲0.0041.73 ▼4.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.67 ▼8.16
Media Library /wp-admin/upload.php3.23 ▲0.0033.55 ▼2.38

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Rumailer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.60 ▼0.791.50 ▼0.4842.81 ▼3.40
Dashboard /wp-admin2,203 ▲184.87 ▼1.03112.07 ▼2.1643.11 ▼6.12
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0439.93 ▲4.3334.08 ▼3.40
Add New Post /wp-admin/post-new.php1,542 ▲918.41 ▼4.64610.72 ▼69.3661.17 ▲6.16
Media Library /wp-admin/upload.php1,388 ▼34.14 ▼0.0993.95 ▼13.1840.70 ▼6.55

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 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 following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/rumailer/rumailer.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected 'add_action' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/rumailer/lib/widgets.php on line 178
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rumailer/rumailer.php:648

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 83 tag instead of maximum 10
The official readme.txt might help

rumailer/rumailer.php 92% from 13 tests

The main PHP script in "Rumailer" version 0.0.3 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains

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
No dangerous file extensions were detected1,209 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4711271,079
PO File15455130

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.00
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin