84% mail-categories

Code Review | Mail Categories

WordPress plugin Mail Categories scored 84% from 54 tests.

About plugin

  • Plugin page: mail-categories
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 5.8.1
  • First release: May 12, 2016
  • Latest release: May 12, 2016
  • Number of updates: 33
  • Update frequency: N/A
  • Top authors: christiancabrero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 755 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
Install script ran successfully

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

Analyzing server-side resources used by Mail Categories
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1332.11 ▲6.88
Dashboard /wp-admin3.08 ▲0.0243.25 ▲0.76
Posts /wp-admin/edit.php3.13 ▲0.0243.80 ▲5.45
Add New Post /wp-admin/post-new.php5.44 ▲0.0088.29 ▼582.59
Media Library /wp-admin/upload.php3.02 ▲0.0231.74 ▼2.08

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
category_children

Browser metrics Passed 4 tests

An overview of browser requirements for Mail Categories
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲9815.84 ▲0.267.37 ▲0.1548.69 ▼5.29
Dashboard /wp-admin3,010 ▲795.94 ▼0.21152.19 ▼10.25111.12 ▲5.52
Posts /wp-admin/edit.php2,754 ▲152.69 ▼0.0164.40 ▲0.4996.39 ▲10.07
Add New Post /wp-admin/post-new.php1,882 ▲19919.25 ▲3.08372.52 ▼76.05111.53 ▼13.14
Media Library /wp-admin/upload.php1,819 ▲155.00 ▲0.01137.74 ▼421.87122.69 ▼879.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 1 option in the database
    • category_children

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mail-categories/ajustes_plugin.php

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: seo, plugin, notification, mail, categories

mail-categories/mail-categories.php Passed 13 tests

The principal PHP file in "Mail Categories" v. 1.0 is loaded by WordPress automatically on each request
131 characters long description:
Plugin que realiza un informe de la ultima entrada de cada categoría y avisa por email si hace tiempo que no se publican entradas.

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
Everything looks great! No dangerous files found in this plugin202 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43547202

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin