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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.55 ▼0.97 | 8.42 ▼44.14 |
Dashboard /wp-admin | 2.57 ▼0.85 | 6.33 ▼81.57 |
Posts /wp-admin/edit.php | 2.57 ▼1.08 | 6.66 ▼31.87 |
Add New Post /wp-admin/post-new.php | 2.57 ▼4.41 | 6.26 ▼1,256.33 |
Media Library /wp-admin/upload.php | 2.57 ▼0.73 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲31 | 15.77 ▲0.48 | 5.57 ▼0.23 | 2.27 ▼0.43 |
Dashboard /wp-admin | 2,908 ▲50 | 6.13 ▼0.16 | 125.03 ▼14.07 | 237.53 ▲73.36 |
Posts /wp-admin/edit.php | 2,705 ▲21 | 3.12 ▼0.13 | 63.72 ▼28.24 | 142.35 ▼34.05 |
Add New Post /wp-admin/post-new.php | 1,609 ▼110 | 19.89 ▼2.84 | 399.62 ▼27.36 | 269.61 ▲109.66 |
Media Library /wp-admin/upload.php | 1,715 ▲17 | 5.53 ▲0.10 | 123.74 ▼15.76 | 267.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 2,960 | 1,696 | 40,169 |
C++ | 1 | 126 | 43 | 900 |
Markdown | 2 | 89 | 0 | 218 |
JSON | 1 | 0 | 0 | 31 |
PO File | 1 | 0 | 0 | 15 |
m4 | 1 | 3 | 4 | 8 |
CSS | 1 | 0 | 0 | 7 |
C/C++ Header | 1 | 4 | 18 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 24.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 662.00 |
Average method complexity | 5.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 250 | |
▷ Abstract classes | 4 | 1.60% |
▷ Concrete classes | 246 | 98.40% |
▷ Final classes | 10 | 4.07% |
Methods | 1,471 | |
▷ Static methods | 3 | 0.20% |
▷ Public methods | 1,364 | 92.73% |
▷ Protected methods | 99 | 6.73% |
▷ Private methods | 8 | 0.54% |
Functions | 64 | |
▷ Named functions | 63 | 98.44% |
▷ Anonymous functions | 1 | 1.56% |
Constants | 95 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 95 | 100.00% |
▷ Public constants | 95 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon32.png | 0.61KB | 0.37KB | ▼ 39.84% |
assets/screenshot-1.png | 94.93KB | 31.45KB | ▼ 66.87% |
assets/icon.png | 0.31KB | 0.28KB | ▼ 10.09% |
assets/screenshot-2.png | 76.66KB | 25.29KB | ▼ 67.02% |