84% wp-quick-notes

Code Review | Quick Notes

WordPress plugin Quick Notes scored84%from 54 tests.

About plugin

  • Plugin page: wp-quick-notes
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 4, 2018
  • Latest release: Jan 4, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: mhpcsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /667 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.86ms] Passed 4 tests

An overview of server-side resources used by Quick Notes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.19 ▼5.33
Dashboard /wp-admin3.31 ▼0.0343.43 ▼18.68
Posts /wp-admin/edit.php3.37 ▲0.0146.79 ▲0.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.11 ▼11.82
Media Library /wp-admin/upload.php3.24 ▲0.0135.24 ▲0.41

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_mhpc_quick_notes_widget

Browser metrics Passed 4 tests

A check of browser resources used by Quick Notes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.37 ▼0.031.75 ▲0.0139.19 ▼5.62
Dashboard /wp-admin2,198 ▲245.65 ▲0.1289.79 ▼11.8936.20 ▼7.60
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0039.48 ▲2.3435.56 ▲0.06
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▼0.12675.10 ▼8.2352.47 ▲4.67
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.09102.60 ▼9.8945.53 ▼1.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_mhpc_quick_notes_widget
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-quick-notes/includes/Mhpc_Quick_Notes_Widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 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
3 plugin tags: user notes, wordpress notes, frontend notes

wp-quick-notes/mhpc-quick-notes.php 85% from 13 tests

The main PHP script in "Quick Notes" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-quick-notes.php" instead of "mhpc-quick-notes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected76 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101862
JavaScript12011
CSS1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin