74% plugin-notes-plus

Code Review | Plugin Notes Plus

WordPress plugin Plugin Notes Plus scored74%from 54 tests.

About plugin

  • Plugin page: plugin-notes-plus
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2018
  • Latest release: Jan 28, 2023
  • Number of updates: 25
  • Update frequency: every 72.4 days
  • Top authors: jamiebergen (100%)

Code review

54 tests

User reviews

53 reviews

Install metrics

7,000+ active /39,972 total downloads

Benchmarks

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.10MB] [CPU: ▼9.42ms] Passed 4 tests

Analyzing server-side resources used by Plugin Notes Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1144.37 ▲4.41
Dashboard /wp-admin3.41 ▲0.0652.17 ▼13.26
Posts /wp-admin/edit.php3.52 ▲0.1646.67 ▼2.64
Add New Post /wp-admin/post-new.php6.01 ▲0.1285.99 ▼20.19
Media Library /wp-admin/upload.php3.33 ▲0.1036.96 ▼1.60

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 8 new options
New tables
wp_plugin_notes_plus
New WordPress options
theysaidso_admin_options
db_upgraded
plugin_notes_plus_note_placement
can_compress_scripts
widget_recent-comments
plugin_notes_plus_db_version
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Plugin Notes Plus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.48 ▲0.341.73 ▲0.1441.99 ▼3.97
Dashboard /wp-admin2,202 ▲215.56 ▼0.1582.66 ▼23.5838.49 ▼10.54
Posts /wp-admin/edit.php2,107 ▲42.04 ▲0.0039.88 ▲0.9533.40 ▼2.78
Add New Post /wp-admin/post-new.php1,532 ▲620.91 ▼2.15646.01 ▲22.9455.13 ▲1.79
Media Library /wp-admin/upload.php1,404 ▲74.24 ▲0.0296.43 ▼6.3246.33 ▼0.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_plugin_notes_plus
  • Zombie WordPress options were found after uninstall: 8 options
    • plugin_notes_plus_note_placement
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • plugin_notes_plus_db_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/plugin-notes-plus/admin/class-plugin-notes-plus-admin.php:323
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/plugin-notes-plus/admin/partials/plugin-note-markup.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: plugin notes, memo, plugins

plugin-notes-plus/plugin-notes-plus.php Passed 13 tests

"Plugin Notes Plus" version 1.2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
31 characters long description:
Adds a column for plugin notes.

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
Good job! No executable or dangerous file extensions detected831 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10220531536
JavaScript29535223
CSS15772

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.83
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods38
▷ Static methods410.53%
▷ Public methods3284.21%
▷ Protected methods25.26%
▷ Private methods410.53%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin