84% take-note

Code Review | Take Note

WordPress plugin Take Note scored84%from 54 tests.

About plugin

  • Plugin page: take-note
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Nov 19, 2016
  • Latest release: Nov 19, 2016
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: burakkaptan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /744 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.69MB] [CPU: ▼15.17ms] Passed 4 tests

A check of server-side resources used by Take Note
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.09 ▼6.39
Dashboard /wp-admin3.32 ▲0.0142.89 ▼6.33
Posts /wp-admin/edit.php3.37 ▲0.0151.54 ▲7.93
Add New Post /wp-admin/post-new.php3.10 ▼2.7935.67 ▼50.79
Media Library /wp-admin/upload.php3.24 ▲0.0135.38 ▲2.85

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Take Note: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.18 ▼1.201.74 ▼0.1440.65 ▼2.74
Dashboard /wp-admin2,205 ▲145.81 ▲0.0097.53 ▼6.1941.66 ▼0.11
Posts /wp-admin/edit.php2,091 ▲22.06 ▲0.0541.08 ▲5.5334.51 ▼4.69
Add New Post /wp-admin/post-new.php6,542 ▲5,00622.19 ▼1.081,016.66 ▲387.61104.37 ▲45.33
Media Library /wp-admin/upload.php1,390 ▼14.20 ▼0.0493.35 ▼6.1641.40 ▼3.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/take-note/uninstall.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/take-note/take-note.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === take-note === )
  • Screenshots: Screenshot #1 (Screenshot) image missing
Please take inspiration from this readme.txt

take-note/take-note.php Passed 13 tests

Analyzing the main PHP file in "Take Note" version 1.0
115 characters long description:
It's easy to take note with this plugin especially huge contents. It shows up under the editor for posts and pages.

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
There were no executable files found in this plugin28 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2252522
CSS1003
LESS1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin