83% jeba-ajax-mailchimp

Code Review | Jeba Ajax mailchimp

WordPress plugin Jeba Ajax mailchimp scored83%from 54 tests.

About plugin

  • Plugin page: jeba-ajax-mailchimp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 14, 2014
  • Latest release: Sep 19, 2014
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /646 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Jeba Ajax mailchimp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.56 ▲1.04
Dashboard /wp-admin3.31 ▲0.0147.71 ▼4.13
Posts /wp-admin/edit.php3.36 ▲0.0146.82 ▲1.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.85 ▼21.78
Media Library /wp-admin/upload.php3.23 ▲0.0036.89 ▼0.39

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Jeba Ajax mailchimp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.39 ▼0.8510.24 ▲8.3943.62 ▲4.84
Dashboard /wp-admin2,195 ▲185.62 ▼0.0592.46 ▼3.4845.32 ▲0.94
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0139.80 ▲3.1436.41 ▼0.17
Add New Post /wp-admin/post-new.php1,526 ▲123.23 ▲0.07661.14 ▲16.5554.05 ▲1.91
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0094.25 ▼7.9741.54 ▼2.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 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/jeba-ajax-mailchimp/jeba-index.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Contributors: Plugin contributors not specified
  • Screenshots: These screenshots require images: #1 (Installed in demo server.), #2 (Another demo.)
The official readme.txt is a good inspiration

jeba-ajax-mailchimp/jeba-index.php 85% from 13 tests

This is the main PHP file of "Jeba Ajax mailchimp" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 246 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jeba-ajax-mailchimp.php" instead of "jeba-index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected300 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1350179
JavaScript3321369
PHP113852

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin