84% admin-notebook

Code Review | Admin Notebook

WordPress plugin Admin Notebook scored84%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: 6.3.1
  • 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 /914 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Admin Notebook
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.25 ▲1.22
Dashboard /wp-admin3.32 ▼0.0357.64 ▼7.74
Posts /wp-admin/edit.php3.37 ▲0.0149.38 ▼4.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.54 ▼10.82
Media Library /wp-admin/upload.php3.24 ▲0.0136.72 ▼5.61

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Admin Notebook
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.44 ▼0.928.58 ▲6.9146.83 ▲6.06
Dashboard /wp-admin2,214 ▲435.48 ▼0.11103.58 ▼1.1337.21 ▼5.32
Posts /wp-admin/edit.php2,119 ▲192.00 ▲0.0438.14 ▼2.7836.55 ▼1.96
Add New Post /wp-admin/post-new.php1,613 ▲8722.57 ▼0.48680.23 ▼16.7840.64 ▼13.16
Media Library /wp-admin/upload.php1,416 ▲164.24 ▲0.11100.84 ▼9.1944.94 ▼3.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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)
Even though no errors were found, 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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 shallow check for browser errors
Everything seems fine on the user side

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
Attributes that need to be fixed:
  • Contributors: Contributors not specified
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in admin-notebook/assets to your readme.txt
Please take inspiration from this readme.txt

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

The main PHP file in "Admin Notebook" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! 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

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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

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