94% admin-notebook

Code Review | Admin Notebook

WordPress plugin Admin Notebook scored 94% from 54 tests.

About plugin

  • Plugin page: admin-notebook
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 5.9.2
  • First release: Mar 16, 2018
  • Latest release: Jan 31, 2021
  • Number of updates: 11
  • Update frequency: every 95.8 days
  • Top authors: maulikearth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 647 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Admin Notebook
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0255.84 ▲4.99
Dashboard /wp-admin3.43 ▲0.0232.41 ▼2.05
Posts /wp-admin/edit.php3.65 ▲0.0141.20 ▲5.28
Add New Post /wp-admin/post-new.php6.90 ▼0.0793.33 ▼1,170.43
Media Library /wp-admin/upload.php3.31 ▲0.0125.47 ▲0.32

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Notebook
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,981 ▲22716.17 ▲0.559.83 ▲3.565.23 ▲2.62
Dashboard /wp-admin2,921 ▲676.13 ▼0.04114.10 ▼19.82156.65 ▼4.47
Posts /wp-admin/edit.php2,720 ▲323.23 ▼0.0167.22 ▲2.48143.65 ▼4.74
Add New Post /wp-admin/post-new.php1,840 ▲8923.86 ▲2.10416.12 ▼31.70158.78 ▲7.22
Media Library /wp-admin/upload.php1,722 ▲245.51 ▲0.01145.27 ▼15.50179.14 ▼18.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-notebook/admin-notebook.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in admin-notebook/assets to your readme.txt
The official readme.txt might help

admin-notebook/admin-notebook.php Passed 13 tests

Analyzing the main PHP file in "Admin Notebook" version 2.1
65 characters long description:
Admin Notebook is simply allow wordpress site admin to add notes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin102 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15742
PHP15737
CSS11023

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin