90% notely

Code Review | Notely

WordPress plugin Notely scored90%from 54 tests.

About plugin

  • Plugin page: notely
  • Plugin version: 1.8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2012
  • Latest release: Aug 10, 2023
  • Number of updates: 28
  • Update frequency: every 143.1 days
  • Top authors: mikeyott (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

900+ active /14,150 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.21ms] Passed 4 tests

A check of server-side resources used by Notely
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.17 ▼2.32
Dashboard /wp-admin3.37 ▲0.0354.99 ▼13.22
Posts /wp-admin/edit.php3.43 ▲0.0753.49 ▲2.74
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.04 ▼8.05
Media Library /wp-admin/upload.php3.30 ▲0.0740.97 ▲4.48
Notely /wp-admin/options-general.php?page=notely-settings3.2635.37

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Notely
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6514.69 ▲0.492.06 ▲0.0844.99 ▼6.71
Dashboard /wp-admin2,204 ▲275.64 ▲0.0295.35 ▼1.6643.63 ▲0.53
Posts /wp-admin/edit.php2,114 ▲142.00 ▲0.0235.89 ▼1.5833.65 ▲0.34
Add New Post /wp-admin/post-new.php1,535 ▲923.27 ▼0.45728.10 ▲71.8250.29 ▼0.20
Media Library /wp-admin/upload.php1,406 ▲94.23 ▼0.06103.92 ▲6.3943.93 ▲1.18
Notely /wp-admin/options-general.php?page=notely-settings1,0151.7437.2225.91

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
4 plugin tags: page notes, memo, notes, post notes

notely/notely.php Passed 13 tests

The main PHP script in "Notely" version 1.8.0 is automatically included on every request by WordPress
98 characters long description:
Adds a new metabox into the Posts, Pages and Woo Commerce Products admin sidebar for making notes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin595 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP37442324
Sass1180160
SVG302110
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin