94% admin-page-notes

Code Review | Admin Page Notes

WordPress plugin Admin Page Notes scored 94% from 54 tests.

About plugin

  • Plugin page: admin-page-notes
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.8.1
  • WordPress version: 5.9.2
  • First release: Feb 2, 2014
  • Latest release: Feb 16, 2014
  • Number of updates: 13
  • Update frequency: every 1.1 days
  • Top authors: joshlimecuda (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active / 2,945 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: ▼316.38ms] Passed 4 tests

Server-side resources used by Admin Page Notes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.84 ▲3.13
Dashboard /wp-admin3.41 ▲0.0131.22 ▼0.66
Posts /wp-admin/edit.php3.65 ▲0.0135.43 ▲0.02
Add New Post /wp-admin/post-new.php6.93 ▼0.0492.63 ▼1,258.32
Media Library /wp-admin/upload.php3.30 ▼0.0024.57 ▼6.56

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin Page Notes: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,765 ▲1816.18 ▲0.545.71 ▼0.232.36 ▲0.19
Dashboard /wp-admin2,897 ▲396.15 ▼0.02126.27 ▼7.23170.77 ▲16.70
Posts /wp-admin/edit.php2,696 ▲23.24 ▼0.0065.96 ▲2.69136.70 ▼3.35
Add New Post /wp-admin/post-new.php1,729 ▼2321.30 ▼0.37416.27 ▼29.05169.18 ▲11.75
Media Library /wp-admin/upload.php1,697 ▲25.53 ▲0.03131.98 ▼8.77183.70 ▼6.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/admin-page-notes/admin/views/editor.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/admin-page-notes/admin/views/admin.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: admin, author, usability, editor

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

"Admin Page Notes" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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
No dangerous file extensions were detected106 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6549099
CSS1017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png9.13KB3.04KB▼ 66.63%
assets/screenshot-1.png33.49KB8.92KB▼ 73.35%
assets/screenshot-2.png142.93KB43.14KB▼ 69.82%