72% admin-notes-wp

Code Review | Admin Notes WP

WordPress plugin Admin Notes WP scored 72% from 54 tests.

About plugin

  • Plugin page: admin-notes-wp
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 5.9.2
  • First release: Mar 6, 2021
  • Latest release: Mar 28, 2021
  • Number of updates: 8
  • Update frequency: every 3.8 days
  • Top authors: stevepuddick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 265 total downloads


Plugin footprint 83% from 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: ▲3.81MB] [CPU: ▼284.94ms] Passed 4 tests

This is a short check of server-side resources used by Admin Notes WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /8.18 ▲4.6780.50 ▲31.23
Dashboard /wp-admin8.20 ▲4.7957.12 ▲19.87
Posts /wp-admin/edit.php8.26 ▲4.6258.59 ▲18.35
Add New Post /wp-admin/post-new.php8.13 ▲1.1454.90 ▼1,208.83
Media Library /wp-admin/upload.php8.22 ▲4.9353.98 ▲30.86

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 712 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Notes WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,356 ▲60121.18 ▲5.429.21 ▲2.792.71 ▼0.16
Dashboard /wp-admin3,338 ▲48010.66 ▲4.44195.45 ▲64.08150.36 ▼9.27
Posts /wp-admin/edit.php3,199 ▲5087.89 ▲4.65105.27 ▲43.01140.25 ▼1.42
Add New Post /wp-admin/post-new.php2,651 ▲99023.57 ▲7.37619.23 ▲221.52177.16 ▲20.49
Media Library /wp-admin/upload.php2,588 ▲88712.97 ▲7.48238.68 ▲94.91191.43 ▲10.35
Admin Notes WP /wp-admin/crb_carbon_fields_container_admin_notes_wp.php260.940.0322.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • acf_version

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
    • > /wp-content/plugins/admin-notes-wp/admin/partials/wp-admin-notes-admin-display.php
  • 187× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Field/Set_Field.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-notes-wp/includes/acf/advanced-custom-fields/includes/forms/form-widget.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/admin-notes-wp/includes/acf/advanced-custom-fields/includes/fields/class-acf-field-relationship.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Widget/Widget.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-notes-wp/includes/acf/advanced-custom-fields/includes/upgrades.php:450
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/admin-notes-wp/includes/acf/advanced-custom-fields/includes/admin/views/html-admin-page-upgrade-network.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Container/Condition/User_Role_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Field/Checkbox_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/admin-notes-wp/includes/acf/advanced-custom-fields/includes/fields/class-acf-field-number.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Translator' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Array_Translator.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/crb_carbon_fields_container_admin_notes_wp.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_admin_notes_wp.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: note, embed, admin, help, training...

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

The primary PHP file in "Admin Notes WP" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("admin-notes-wp.php" instead of "wp-admin-notes.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin117,947 lines of code in 613 files:
LanguageFilesBlank linesComment linesLines of code
PO File5724,45540,90751,296

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.20
▷ Minimum class complexity1.00
▷ Maximum class complexity78.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
▷ Abstract classes135.63%
▷ Concrete classes21894.37%
▷ Final classes10.46%
▷ Static methods935.73%
▷ Public methods1,44689.04%
▷ Protected methods16510.16%
▷ Private methods130.80%
▷ Named functions45485.02%
▷ Anonymous functions8014.98%
▷ Global constants1641.03%
▷ Class constants2358.97%
▷ Public constants23100.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
8 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings