74% mailartery

Code Review | Mailartery

WordPress plugin Mailartery scored 74% from 54 tests.

About plugin

  • Plugin page: mailartery
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2020
  • Latest release: Jun 6, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: mailartery (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 372 total downloads

Benchmarks

Plugin footprint 65% from 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.04MB] [CPU: ▼4.34ms] Passed 4 tests

An overview of server-side resources used by Mailartery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.18 ▼6.94
Dashboard /wp-admin3.34 ▲0.0446.69 ▼1.34
Posts /wp-admin/edit.php3.39 ▲0.0448.41 ▲0.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0497.35 ▼9.45
Media Library /wp-admin/upload.php3.26 ▲0.0437.47 ▲0.92

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_mailartery_newsletters
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Mailartery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲6113.16 ▼1.021.66 ▼0.2442.40 ▼1.99
Dashboard /wp-admin2,225 ▲345.85 ▲0.9597.71 ▼7.1238.11 ▼6.09
Posts /wp-admin/edit.php2,102 ▲132.01 ▲0.0237.60 ▲0.4332.78 ▼0.74
Add New Post /wp-admin/post-new.php1,560 ▲2718.08 ▼5.16637.72 ▲10.8872.94 ▲13.10
Media Library /wp-admin/upload.php1,404 ▲134.23 ▲0.0398.51 ▼3.5341.01 ▼3.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_mailartery_newsletters
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailartery/mailartery.php:11

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Requires php: Invalid version format
The official readme.txt might help

mailartery/mailartery.php Passed 13 tests

The principal PHP file in "Mailartery" v. 0.1.0 is loaded by WordPress automatically on each request
106 characters long description:
WordPress newsletter plugin. Use this: [mailartery_newsletter] shortcode to display the subscription form.

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
There were no executable files found in this plugin360 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP12822185
JavaScript204166
CSS3109

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions10
▷ Named functions10100.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
No PNG images were found in this plugin