84% admin-page-notes

Code Review | Admin Page Notes

WordPress plugin Admin Page Notes scored84%from 54 tests.

About plugin

  • Plugin page: admin-page-notes
  • Plugin version: 2.1.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2014
  • Latest release: Nov 27, 2023
  • Number of updates: 30
  • Update frequency: every 119.5 days
  • Top authors: dlfulle (60%)joshlimecuda (43.33%)

Code review

54 tests

User reviews

8 reviews

Install metrics

900+ active /4,652 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.58ms] Passed 4 tests

Server-side resources used by Admin Page Notes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.08 ▲1.21
Dashboard /wp-admin3.34 ▲0.0347.80 ▼1.25
Posts /wp-admin/edit.php3.39 ▲0.0346.73 ▲0.87
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.57 ▲1.49
Media Library /wp-admin/upload.php3.26 ▲0.0336.62 ▲7.14

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Page Notes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3014.22 ▲0.161.69 ▲0.0138.64 ▼0.18
Dashboard /wp-admin2,200 ▲355.60 ▼0.1192.08 ▼11.7738.79 ▼6.62
Posts /wp-admin/edit.php2,111 ▲111.97 ▲0.0341.46 ▲3.6935.77 ▼1.78
Add New Post /wp-admin/post-new.php6,228 ▲4,70226.30 ▲3.22889.22 ▲221.7872.79 ▲14.74
Media Library /wp-admin/upload.php1,396 ▼74.21 ▲0.0195.77 ▼2.4640.26 ▼5.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/admin-page-notes/admin/views/admin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/admin-page-notes/admin/views/editor.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: admin, editor, usability, collaboration, author

admin-page-notes/admin-page-notes.php 85% from 13 tests

"Admin Page Notes" version 2.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin149 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP670102142
CSS1017

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
5 PNG files occupy 0.22MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png12.51KB5.85KB▼ 53.25%
assets/banner-772x250.png9.13KB3.04KB▼ 66.63%
assets/icon-256x256.png30.17KB11.82KB▼ 60.84%
assets/screenshot-2.png142.93KB43.14KB▼ 69.82%
assets/screenshot-3.png33.49KB8.92KB▼ 73.35%