10% sentinote

Code Review | Sentinote

WordPress plugin Sentinote scored 10% from 54 tests.

About plugin

  • Plugin page: sentinote
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.9
  • WordPress version: 5.9.2
  • First release: Apr 26, 2014
  • Latest release: Apr 28, 2014
  • Number of updates: 11
  • Update frequency: every 0.3 days
  • Top authors: rheinardkorf (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

70+ active / 4,166 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/sentinote/lib/PHPMarkdownLib/Michelf/Markdown.php+772
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.83MB] [CPU: ▼353.48ms] Passed 4 tests

This is a short check of server-side resources used by Sentinote
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.55 ▼0.978.42 ▼44.14
Dashboard /wp-admin2.57 ▼0.856.33 ▼81.57
Posts /wp-admin/edit.php2.57 ▼1.086.66 ▼31.87
Add New Post /wp-admin/post-new.php2.57 ▼4.416.26 ▼1,256.33
Media Library /wp-admin/upload.php2.57 ▼0.736.63 ▼21.57

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Sentinote: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3115.77 ▲0.485.57 ▼0.232.27 ▼0.43
Dashboard /wp-admin2,908 ▲506.13 ▼0.16125.03 ▼14.07237.53 ▲73.36
Posts /wp-admin/edit.php2,705 ▲213.12 ▼0.1363.72 ▼28.24142.35 ▼34.05
Add New Post /wp-admin/post-new.php1,609 ▼11019.89 ▼2.84399.62 ▼27.36269.61 ▲109.66
Media Library /wp-admin/upload.php1,715 ▲175.53 ▲0.10123.74 ▼15.76267.28 ▲65.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/sentinote/lib/PHPMarkdownLib/Michelf/Markdown.php+772
    Array and string offset access syntax with curly braces is deprecated

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/sentinote/lib/PHPMarkdownLib/Readme.php
  • 80× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening '/packages/UserStore/UserStore_types.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/sentinote/lib/packages/UserStore/UserStore_constants.php on line 9
    • > PHP Warning
      include_once(/Thrift.php): failed to open stream: No such file or directory in wp-content/plugins/sentinote/lib/packages/UserStore/UserStore_types.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function rksnwp_get_timezone_string() in wp-content/plugins/sentinote/inc/connect-evernote.php:27
    • > PHP Notice
      Undefined index: THRIFT_ROOT in wp-content/plugins/sentinote/lib/packages/NoteStore/NoteStore_types.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sentinote/inc/load-scripts.php:27
    • > PHP Fatal error
      require_once(): Failed opening required 'lib/PHPMarkdownLib/Michelf/MarkdownExtra.inc.php' (include_path='.:/usr/share/php') in wp-content/plugins/sentinote/inc/markdown.php on line 7
    • > PHP Warning
      include_once(): Failed opening '/Thrift.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/sentinote/lib/packages/Limits/Limits_types.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/sentinote/lib/packages/NoteStore/NoteStore_types.php on line 13
    • > PHP Warning
      include_once(/packages/Limits/Limits_types.php): failed to open stream: No such file or directory in wp-content/plugins/sentinote/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/sentinote/lib/packages/NoteStore/NoteStore.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: autoblog, evernote, integration

sentinote/sentinote.php 92% from 13 tests

This is the main PHP file of "Sentinote" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin41,353 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP362,9601,69640,169
C++112643900
Markdown2890218
JSON10031
PO File10015
m41348
CSS1007
C/C++ Header14185

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity24.10
▷ Minimum class complexity1.00
▷ Maximum class complexity662.00
Average method complexity5.39
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces7
Interfaces4
Traits0
Classes250
▷ Abstract classes41.60%
▷ Concrete classes24698.40%
▷ Final classes104.07%
Methods1,471
▷ Static methods30.20%
▷ Public methods1,36492.73%
▷ Protected methods996.73%
▷ Private methods80.54%
Functions64
▷ Named functions6398.44%
▷ Anonymous functions11.56%
Constants95
▷ Global constants00.00%
▷ Class constants95100.00%
▷ Public constants95100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon32.png0.61KB0.37KB▼ 39.84%
assets/screenshot-1.png94.93KB31.45KB▼ 66.87%
assets/icon.png0.31KB0.28KB▼ 10.09%
assets/screenshot-2.png76.66KB25.29KB▼ 67.02%