84% email-sync

Code Review | Email Sync

WordPress plugin Email Sync scored84%from 54 tests.

About plugin

  • Plugin page: email-sync
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: May 8, 2015
  • Latest release: May 8, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: gilbitron (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /709 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.52ms] Passed 4 tests

Server-side resources used by Email Sync
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.59 ▼0.05
Dashboard /wp-admin3.39 ▲0.0951.65 ▲0.49
Posts /wp-admin/edit.php3.51 ▲0.1549.83 ▼0.27
Add New Post /wp-admin/post-new.php5.98 ▲0.0988.55 ▼2.27
Media Library /wp-admin/upload.php3.32 ▲0.0937.52 ▲1.45
Email Sync /wp-admin/options-general.php?page=dev7-email-sync3.2832.30

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Email Sync: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.22 ▼0.041.81 ▼0.2846.87 ▲6.63
Dashboard /wp-admin2,199 ▲195.60 ▼0.0594.04 ▼4.8042.45 ▲0.64
Posts /wp-admin/edit.php2,104 ▲11.94 ▼0.0836.40 ▼5.1134.88 ▼2.47
Add New Post /wp-admin/post-new.php1,529 ▼823.14 ▲4.83631.19 ▲4.4049.14 ▼8.90
Media Library /wp-admin/upload.php1,407 ▲44.16 ▼0.0995.62 ▼6.5940.28 ▼9.79
Email Sync /wp-admin/options-general.php?page=dev7-email-sync8112.0024.5126.56

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'Dev7EmailSync\\Integration' not found in wp-content/plugins/email-sync/src/Integrations/Mailchimp.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: sync, mailchimp, email

email-sync/email-sync.php 92% from 13 tests

The main PHP script in "Email Sync" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,579 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP254492,4091,491
JSON30081
Markdown1607

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity1.95
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes114
▷ Abstract classes00.00%
▷ Concrete classes114100.00%
▷ Final classes00.00%
Methods193
▷ Static methods21.04%
▷ Public methods19198.96%
▷ Protected methods10.52%
▷ Private methods10.52%
Functions2
▷ Named functions2100.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 files were detected