68% evernote-sync

Code Review | Evernote Sync

WordPress plugin Evernote Sync scored68%from 54 tests.

About plugin

  • Plugin page: evernote-sync
  • Plugin version: 2.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 17, 2015
  • Latest release: Mar 21, 2023
  • Number of updates: 64
  • Update frequency: every 44.3 days
  • Top authors: tgw365 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active /11,855 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.48ms] Passed 4 tests

A check of server-side resources used by Evernote Sync
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1840.81 ▲3.34
Dashboard /wp-admin3.48 ▲0.1347.51 ▼12.85
Posts /wp-admin/edit.php3.59 ▲0.2447.04 ▲0.79
Add New Post /wp-admin/post-new.php6.06 ▲0.1783.66 ▼8.14
Media Library /wp-admin/upload.php3.40 ▲0.1740.15 ▲2.28

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 108 new files
Database: 1 new table, 7 new options
New tables
wp_evernote_sync_record
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
evernotesync_last
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Evernote Sync
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.24 ▼0.491.66 ▲0.0539.47 ▲1.13
Dashboard /wp-admin2,202 ▲255.59 ▼0.1078.95 ▼5.8636.70 ▼5.31
Posts /wp-admin/edit.php2,107 ▲282.01 ▼0.0034.37 ▼1.3034.47 ▲0.69
Add New Post /wp-admin/post-new.php1,529 ▲123.58 ▲0.81666.29 ▲15.7160.09 ▲4.33
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.06108.10 ▼7.8948.04 ▼2.20
EvernoteSync /wp-admin/evernotesync.php260.420.1212.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_evernote_sync_record
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • evernotesync_last
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 41× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Thrift\\Protocol\\JSON\\BaseContext' not found in wp-content/plugins/evernote-sync/src/Thrift/Protocol/JSON/PairContext.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'Evernote\\Enml\\CSSInliner\\CssInlinerInterface' not found in wp-content/plugins/evernote-sync/src/Evernote/Enml/CSSInliner/CssToInlineStyles.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Thrift\\Type\\TConstant' not found in wp-content/plugins/evernote-sync/src/EDAM/Types/Types.php:6290
    • > PHP Fatal error
      Uncaught Error: Interface 'Evernote\\File\\FileInterface' not found in wp-content/plugins/evernote-sync/src/Evernote/File/File.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Thrift\\Protocol\\TBinaryProtocol' not found in wp-content/plugins/evernote-sync/src/Thrift/Protocol/TBinaryProtocolAccelerated.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Thrift\\Protocol\\JSON\\BaseContext' not found in wp-content/plugins/evernote-sync/src/Thrift/Protocol/JSON/ListContext.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'Evernote\\Enml\\Converter\\HtmlConverterInterface' not found in wp-content/plugins/evernote-sync/src/Evernote/Enml/Converter/EnmlToHtmlConverter.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Thrift\\Factory\\TProtocolFactory' not found in wp-content/plugins/evernote-sync/src/Thrift/Factory/TBinaryProtocolFactory.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Evernote\\Model\oteContent' not found in wp-content/plugins/evernote-sync/src/Evernote/Model/HtmlNoteContent.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Thrift\\Type\\TConstant' not found in wp-content/plugins/evernote-sync/src/EDAM/Limits/Types.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/evernotesync.php
    • > Network (severe)
    wp-admin/evernotesync.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: sync, evernote

evernote-sync/evernote-sync.php 85% from 13 tests

This is the main PHP file of "Evernote Sync" version 2.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected42,754 lines of code in 105 files:
LanguageFilesBlank linesComment linesLines of code
PHP1023,6152,54042,559
PO File1473112
XSLT221583

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity20.04
▷ Minimum class complexity1.00
▷ Maximum class complexity662.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces26
Interfaces10
Traits0
Classes320
▷ Abstract classes72.19%
▷ Concrete classes31397.81%
▷ Final classes134.15%
Methods1,939
▷ Static methods1678.61%
▷ Public methods1,71088.19%
▷ Protected methods1879.64%
▷ Private methods422.17%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants170
▷ Global constants00.00%
▷ Class constants170100.00%
▷ Public constants170100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin