10% wp-evernote-synchronizer

Code Review | WP Evernote Synchronizer

WordPress plugin WP Evernote Synchronizer scored10%from 54 tests.

About plugin

  • Plugin page: wp-evernote-synch...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.4
  • WordPress version: 6.3.1
  • First release: May 12, 2016
  • Latest release: Nov 27, 2018
  • Number of updates: 9
  • Update frequency: every 103.3 days
  • Top authors: Nora0123456789 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,269 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/lib/autoload.php+39
    __autoload() is deprecated, use spl_autoload_register() instead

Server metrics [RAM: ▼1.53MB] [CPU: ▼53.29ms] Passed 4 tests

Analyzing server-side resources used by WP Evernote Synchronizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.45 ▼1.016.45 ▼35.57
Dashboard /wp-admin2.47 ▼0.837.17 ▼48.12
Posts /wp-admin/edit.php2.48 ▼0.886.54 ▼44.91
Add New Post /wp-admin/post-new.php2.47 ▼3.416.84 ▼84.57
Media Library /wp-admin/upload.php2.48 ▼0.758.68 ▼26.39
Notebook /wp-admin/edit-tags.php?taxonomy=wpes-evernote-notebook&post_type=wpes-evernote2.486.64
Tag /wp-admin/edit-tags.php?taxonomy=wpes-evernote-tag&post_type=wpes-evernote2.487.85
Settings /wp-admin/edit.php?post_type=wpes-evernote&page=wpes_options2.487.52
All Evernotes /wp-admin/edit.php?post_type=wpes-evernote2.487.04
Add new /wp-admin/post-new.php?post_type=wpes-evernote2.486.65

Server storage [IO: ▲2.52MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

WP Evernote Synchronizer: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10314.80 ▲0.501.68 ▼0.2339.90 ▼5.47
Dashboard /wp-admin2,273 ▲735.91 ▲0.06105.22 ▼1.9136.82 ▼9.35
Posts /wp-admin/edit.php2,149 ▲492.06 ▲0.0637.05 ▼1.0230.32 ▼8.65
Add New Post /wp-admin/post-new.php1,578 ▲2923.28 ▲0.07609.22 ▼7.8155.22 ▼16.90
Media Library /wp-admin/upload.php1,449 ▲494.22 ▼0.04108.13 ▼3.5948.40 ▼1.54
Notebook /wp-admin/edit-tags.php?taxonomy=wpes-evernote-notebook&post_type=wpes-evernote1,3202.3229.3129.20
Tag /wp-admin/edit-tags.php?taxonomy=wpes-evernote-tag&post_type=wpes-evernote1,3202.3228.5130.38
Settings /wp-admin/edit.php?post_type=wpes-evernote&page=wpes_options1,0081.8531.7339.61
All Evernotes /wp-admin/edit.php?post_type=wpes-evernote1,1401.9836.9927.76
Add new /wp-admin/post-new.php?post_type=wpes-evernote2,4467.72173.8761.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/lib/autoload.php+39
    __autoload() is deprecated, use spl_autoload_register() instead
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • wpes_evernote_update_suspend

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wpes-evernote
    • > Deprecated in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/lib/autoload.php+39
    __autoload() is deprecated, use spl_autoload_register() instead
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wpes-evernote
    • > Deprecated in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/lib/transport/THttpClient.php+93
    Array and string offset access syntax with curly braces is deprecated

SRP 0% 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
Almost there! Just fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/sample/oauth/functions.php
    • > /wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/sample/oauth/index.php
    • > /wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/sample/client/EDAMTest.php
    • > /wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/sample/oauth/sampleApp.php
  • 138× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening '/Thrift.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/lib/packages/Types/Types_types.php on line 9
    • > PHP Warning
      include_once(): Failed opening '/packages/Types/Types_types.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/sample/oauth/lib/packages/Types/Types_constants.php on line 9
    • > PHP Notice
      Undefined index: THRIFT_ROOT in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/lib/packages/UserStore/UserStore_constants.php on line 9
    • > PHP Warning
      include_once(): Failed opening '/packages/Limits/Limits_types.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/lib/packages/Limits/Limits_constants.php on line 9
    • > PHP Warning
      include_once(): Failed opening '/Thrift.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/sample/oauth/lib/packages/UserStore/UserStore_types.php on line 9
    • > PHP Notice
      Undefined index: THRIFT_ROOT in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/sample/oauth/lib/packages/Limits/Limits_constants.php on line 9
    • > PHP Warning
      include_once(): Failed opening '/packages/Errors/Errors_types.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/sample/oauth/lib/packages/NoteStore/NoteStore_types.php on line 13
    • > PHP Warning
      include_once(): Failed opening '/packages/UserStore/UserStore_types.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/lib/packages/NoteStore/NoteStore_types.php on line 11
    • > PHP Warning
      include_once(/packages/Types/Types_types.php): failed to open stream: No such file or directory in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/sample/oauth/lib/packages/UserStore/UserStore_types.php on line 11
    • > PHP Warning
      include_once(/packages/UserStore/UserStore_types.php): failed to open stream: No such file or directory in wp-content/plugins/wp-evernote-synchronizer/evernote-sdk-php-master/sample/oauth/lib/packages/UserStore/UserStore_constants.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-evernote-synchronizer === )
You can take inspiration from this readme.txt

wp-evernote-synchronizer/wp-evernote-synchronizer.php Passed 13 tests

The main PHP script in "WP Evernote Synchronizer" version 1.0.7 is automatically included on every request by WordPress
69 characters long description:
Enables to Import Notes from Evernote as pages of selected post type.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin74,571 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP344,7501,11973,122
C++112643900
PO File18690256
Markdown2500143
JavaScript117761
CSS113045
JSON20031
m41348
C/C++ Header14185

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity23.92
▷ Minimum class complexity1.00
▷ Maximum class complexity662.00
Average method complexity5.59
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces6
Interfaces6
Traits0
Classes490
▷ Abstract classes61.22%
▷ Concrete classes48498.78%
▷ Final classes204.13%
Methods2,743
▷ Static methods170.62%
▷ Public methods2,71198.83%
▷ Protected methods160.58%
▷ Private methods160.58%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants194
▷ Global constants63.09%
▷ Class constants18896.91%
▷ Public constants188100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
evernote-sdk-php-master/sample/client/enlogo.png5.89KB3.27KB▼ 44.52%