89% cornell-notes

Code Review | Cornell Notes Gutenberg Block

WordPress plugin Cornell Notes Gutenberg Block scored89%from 54 tests.

About plugin

  • Plugin page: cornell-notes
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.4-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 30, 2020
  • Latest release: Jul 1, 2020
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: Sean Blakeley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /968 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.19ms] Passed 4 tests

Server-side resources used by Cornell Notes Gutenberg Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.55 ▼1.66
Dashboard /wp-admin3.31 ▲0.0147.34 ▼4.67
Posts /wp-admin/edit.php3.36 ▲0.0046.30 ▼3.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.72 ▲3.20
Media Library /wp-admin/upload.php3.23 ▲0.0036.98 ▲1.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Cornell Notes Gutenberg Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.32 ▼0.062.39 ▲0.2342.58 ▼5.22
Dashboard /wp-admin2,195 ▲155.65 ▼0.0189.50 ▼8.1543.39 ▼1.17
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0340.77 ▲3.8937.69 ▲0.24
Add New Post /wp-admin/post-new.php6,209 ▲4,68321.57 ▼1.49856.80 ▲169.3067.89 ▲14.84
Media Library /wp-admin/upload.php1,403 ▼04.26 ▲0.03104.12 ▼3.0447.01 ▲0.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • 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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: gutenberg, study-aid, note taking, notes, block...

cornell-notes/plugin.php 85% from 13 tests

This is the main PHP file of "Cornell Notes Gutenberg Block" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 168 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cornell-notes.php" instead of "plugin.php")

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 plugin7,703 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JSON3007,373
JavaScript91422115
Sass225399
Markdown124076
PHP285739
CSS20121

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin