79% page-post-notes

Code Review | Page & Post Notes

WordPress plugin Page & Post Notes scored79%from 54 tests.

About plugin

  • Plugin page: page-post-notes
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: Aug 21, 2023
  • Number of updates: 30
  • Update frequency: every 41.5 days
  • Top authors: yydevelopment (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /5,500 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by Page & Post Notes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.15 ▲0.04
Dashboard /wp-admin3.35 ▲0.0552.91 ▼4.58
Posts /wp-admin/edit.php3.39 ▲0.0353.91 ▲3.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.29 ▼5.95
Media Library /wp-admin/upload.php3.26 ▲0.0339.09 ▲0.13

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: 1 new table, 7 new options
New tables
wp_yydev_notes
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
yydev_notes_timestamp
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Page & Post Notes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10314.36 ▼0.261.71 ▼0.3137.37 ▼8.05
Dashboard /wp-admin2,258 ▲815.61 ▲0.0688.81 ▼2.0878.78 ▲37.20
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0940.30 ▼2.0538.59 ▲1.34
Add New Post /wp-admin/post-new.php6,264 ▲4,73825.89 ▲2.781,044.66 ▲346.4764.16 ▲8.84
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.0097.22 ▼4.1148.02 ▲6.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_yydev_notes
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • yydev_notes_timestamp
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

page-post-notes/index.php 92% from 13 tests

Analyzing the main PHP file in "Page & Post Notes" version 1.3.2
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("page-post-notes.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected540 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9272116540

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/remove.png1.58KB0.82KB▼ 48.30%
images/separator.png1.15KB0.10KB▼ 90.91%
images/icon.png6.24KB6.33KB0.00%
images/text-direction.png1.35KB0.41KB▼ 69.80%