83% easy-ajax-mail-subscription

Code Review | Easy Ajax MailChimp

WordPress plugin Easy Ajax MailChimp scored83%from 54 tests.

About plugin

  • Plugin page: easy-ajax-mail-su...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: May 30, 2014
  • Latest release: Sep 9, 2014
  • Number of updates: 11
  • Update frequency: every 9.3 days
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,256 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Easy Ajax MailChimp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.65 ▼0.90
Dashboard /wp-admin3.32 ▲0.0249.70 ▼6.15
Posts /wp-admin/edit.php3.37 ▲0.0150.42 ▲0.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.24 ▼16.45
Media Library /wp-admin/upload.php3.24 ▲0.0133.52 ▼1.50

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Easy Ajax MailChimp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.79 ▼0.779.26 ▲7.6446.28 ▲3.27
Dashboard /wp-admin2,189 ▲155.55 ▼0.0992.21 ▲3.6638.18 ▼8.29
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0140.12 ▼0.7435.42 ▼6.35
Add New Post /wp-admin/post-new.php1,537 ▲1118.22 ▼5.29614.18 ▲3.1866.16 ▲10.17
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0398.02 ▼10.4142.98 ▼0.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-ajax-mail-subscription/easy-ajax-mailchimp.php:14

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

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #3, #4 in easy-ajax-mail-subscription/assets to your readme.txt
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

easy-ajax-mail-subscription/easy-ajax-mailchimp.php 92% from 13 tests

The principal PHP file in "Easy Ajax MailChimp" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-ajax-mail-subscription.php" instead of "easy-ajax-mailchimp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected152 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12737152

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.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