68% evernote-sync

Code Review | Evernote Sync

WordPress plugin Evernote Sync scored 68% from 54 tests.

About plugin

  • Plugin page: evernote-sync
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.9.4
  • WordPress version: 5.8.1
  • First release: Jun 17, 2015
  • Latest release: Jul 9, 2019
  • Number of updates: 62
  • Update frequency: every 24.0 days
  • Top authors: tgw365 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active / 10,681 total downloads


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.18MB] [CPU: ▼137.73ms] 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.01 ▲0.2937.32 ▲12.85
Dashboard /wp-admin3.24 ▲0.1846.50 ▲0.62
Posts /wp-admin/edit.php3.35 ▲0.2347.54 ▲1.67
Add New Post /wp-admin/post-new.php5.59 ▲0.1596.10 ▼561.09
Media Library /wp-admin/upload.php3.18 ▲0.1739.29 ▲7.90

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, 1 new option
New tables
New WordPress options

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 /3,708 ▲11215.89 ▲0.199.58 ▲0.7950.81 ▲0.06
Dashboard /wp-admin2,975 ▲415.91 ▼0.07141.38 ▼6.27120.46 ▲4.12
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0264.17 ▼2.7396.40 ▲6.61
Add New Post /wp-admin/post-new.php1,686 ▲318.78 ▲0.01437.21 ▲58.78153.99 ▲40.48
Media Library /wp-admin/upload.php1,812 ▲25.03 ▲0.03147.83 ▼1.09129.10 ▲4.24
EvernoteSync /wp-admin/evernotesync.php260.900.149.79

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 1 option in the database
    • evernotesync_last

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: Interface 'Thrift\\Factory\\TProtocolFactory' not found in wp-content/plugins/evernote-sync/src/Thrift/Factory/TJSONProtocolFactory.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Thrift\\Type\\TConstant' not found in wp-content/plugins/evernote-sync/src/EDAM/UserStore/Types.php:943
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/evernote-sync/evernote-sync.php on line 35
    • > PHP Fatal error
      Uncaught Error: Class 'Thrift\\Server\\TServer' not found in wp-content/plugins/evernote-sync/src/Thrift/Server/TSimpleServer.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Thrift\\Transport\\TTransport' not found in wp-content/plugins/evernote-sync/src/Thrift/Transport/TBufferedTransport.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Evernote\\Model\oteContent' not found in wp-content/plugins/evernote-sync/src/Evernote/Model/PlainTextNoteContent.php:7
    • > 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: Interface 'Evernote\\Enml\\Converter\\EnmlConverterInterface' not found in wp-content/plugins/evernote-sync/src/Evernote/Enml/Converter/HtmlToEnmlConverter.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Thrift\\Transport\\TSocket' not found in wp-content/plugins/evernote-sync/src/Thrift/Transport/TSocketPool.php:45

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)


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: evernote, sync

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

This is the main PHP file of "Evernote Sync" version 2.0.6, 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
PO File1473112

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
▷ Abstract classes72.19%
▷ Concrete classes31397.81%
▷ Final classes134.15%
▷ Static methods1678.61%
▷ Public methods1,71088.19%
▷ Protected methods1879.64%
▷ Private methods422.17%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ 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