68% jamp-notes

Code Review | JAMP Notes (Just Another Memo Plugin)

WordPress plugin JAMP Notes (Just Another Memo Plugin) scored68%from 54 tests.

About plugin

  • Plugin page: jamp-notes
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jun 2, 2020
  • Latest release: Jul 31, 2023
  • Number of updates: 34
  • Update frequency: every 33.9 days
  • Top authors: andreaporotti (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

80+ active /1,397 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.36MB] [CPU: ▲1.87ms] Passed 4 tests

This is a short check of server-side resources used by JAMP Notes (Just Another Memo Plugin)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3048.11 ▲2.26
Dashboard /wp-admin3.71 ▲0.3654.42 ▼6.00
Posts /wp-admin/edit.php3.77 ▲0.4154.91 ▲4.57
Add New Post /wp-admin/post-new.php6.29 ▲0.40105.70 ▲6.66
Media Library /wp-admin/upload.php3.60 ▲0.3644.10 ▲8.72
Add New /wp-admin/post-new.php?post_type=jamp_note3.8362.01
All Notes /wp-admin/edit.php?post_type=jamp_note3.6446.31
JAMP Notes /wp-admin/options-general.php?page=jamp_options3.5736.53

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for JAMP Notes (Just Another Memo Plugin)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,985 ▲19914.20 ▼0.3914.12 ▲11.8942.94 ▼1.66
Dashboard /wp-admin2,259 ▲884.92 ▼0.7091.06 ▼8.4837.65 ▼6.53
Posts /wp-admin/edit.php2,188 ▲912.31 ▲0.3636.61 ▼0.0133.76 ▼4.23
Add New Post /wp-admin/post-new.php1,599 ▲7322.92 ▲0.10676.13 ▲12.0038.55 ▼15.38
Media Library /wp-admin/upload.php1,464 ▲674.49 ▲0.33110.48 ▲4.9345.48 ▼3.63
Add New /wp-admin/post-new.php?post_type=jamp_note2,6197.96167.0262.43
All Notes /wp-admin/edit.php?post_type=jamp_note1,1542.4433.2631.23
JAMP Notes /wp-admin/options-general.php?page=jamp_options9711.9229.1227.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstaller has failed for this plugin, leaving 30 files (0.19MB) in the plugin directory
    • (new file) README.txt
    • (new file) LICENSE.txt
    • (new file) admin/index.php
    • (new file) admin/js/jamp-admin.min.js
    • (new file) admin/class-jamp-admin.php
    • (new file) admin/class-jamp-options.php
    • (new file) admin/css/jamp-admin.min.css
    • (new file) admin/partials/jamp-admin-admin-bar.php
    • (new file) admin/js/jamp-admin.js
    • (new file) admin/css/jamp-admin.css
    • ...
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/jamp-notes/admin/partials/jamp-admin-column-users.php
    • > /wp-content/plugins/jamp-notes/admin/partials/jamp-admin-column.php
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_current_post_type() on null in wp-content/plugins/jamp-notes/admin/partials/jamp-admin-meta-box-view-notes.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/jamp-notes/admin/partials/jamp-admin-options-page.php:13
    • > PHP Notice
      Undefined variable: column_name in wp-content/plugins/jamp-notes/admin/partials/jamp-admin-column.php on line 14
    • > PHP Notice
      Undefined variable: column_name in wp-content/plugins/jamp-notes/admin/partials/jamp-admin-column-users.php on line 13
    • > PHP Notice
      Undefined variable: column_name in wp-content/plugins/jamp-notes/admin/partials/jamp-admin-column.php on line 143
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/jamp-notes/admin/partials/jamp-admin-meta-box.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jamp-notes/admin/partials/jamp-admin-admin-bar.php:14
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/jamp-notes/admin/partials/jamp-admin-meta-box-view-notes.php on line 15
    • > PHP Notice
      Undefined variable: column_name in wp-content/plugins/jamp-notes/admin/partials/jamp-admin-column.php on line 125
    • > PHP Notice
      Undefined variable: column_name in wp-content/plugins/jamp-notes/admin/partials/jamp-admin-column.php on line 134

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: notes, note, dashboard, memo

jamp-notes/jamp.php 85% from 13 tests

Analyzing the main PHP file in "JAMP Notes (Just Another Memo Plugin)" version 1.5.0
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jamp-notes.php" instead of "jamp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,685 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP186749881,797
CSS29934408
PO File1104161267
JavaScript24527213

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity17.67
▷ Minimum class complexity1.00
▷ Maximum class complexity128.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods68
▷ Static methods1217.65%
▷ Public methods5479.41%
▷ Protected methods00.00%
▷ Private methods1420.59%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected