72% admin-notes-wp

Code Review | Admin Notes WP

WordPress plugin Admin Notes WP scored72%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: 6.3.1
  • 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 /530 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
Install script ran successfully

Server metrics [RAM: ▲4.14MB] [CPU: ▲10.62ms] Passed 4 tests

A check of server-side resources used by Admin Notes WP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /8.13 ▲4.6782.45 ▲39.36
Dashboard /wp-admin8.19 ▲4.8483.31 ▲14.79
Posts /wp-admin/edit.php8.24 ▲4.8978.05 ▲22.19
Add New Post /wp-admin/post-new.php8.03 ▲2.1577.80 ▼33.85
Media Library /wp-admin/upload.php8.19 ▲4.9782.13 ▲44.80

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 712 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
acf_version
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Notes WP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,248 ▲48718.74 ▲4.465.56 ▲3.9642.32 ▲3.36
Dashboard /wp-admin2,550 ▲3739.06 ▲3.41158.39 ▲61.3640.20 ▲0.89
Posts /wp-admin/edit.php2,484 ▲3816.42 ▲4.3987.30 ▲47.0939.20 ▲3.18
Add New Post /wp-admin/post-new.php6,787 ▲5,26126.70 ▲3.591,190.90 ▲504.4641.67 ▼10.88
Media Library /wp-admin/upload.php2,159 ▲76813.12 ▲8.92276.74 ▲172.2752.88 ▲7.31
Admin Notes WP /wp-admin/crb_carbon_fields_container_admin_notes_wp.php260.420.1014.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • acf_version
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% 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 0% 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× PHP files perform the task of outputting text when accessed with GET requests:
    • > /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× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Field/Field.php:17
    • > 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-radio.php:5
    • > PHP Notice
      Undefined variable: rule in wp-content/plugins/admin-notes-wp/includes/acf/advanced-custom-fields/includes/admin/views/html-location-rule.php on line 4
    • > 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-file.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Service/Meta_Query_Service.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Any_Equality_Comparer.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Container/Term_Meta_Container.php:11
    • > 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/Color_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Field/Gravity_Form_Field.php:8
    • > PHP Notice
      Undefined variable: plural in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 40

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 browser 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)

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
7 plugin tags: training, embed, support, note, video...

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

This is the main PHP file of "Admin Notes WP" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admin-notes-wp.php" instead of "wp-admin-notes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin117,947 lines of code in 613 files:
LanguageFilesBlank linesComment linesLines of code
PO File5724,45540,90751,296
JavaScript18711,92115,17135,527
PHP29112,31624,61425,462
CSS205411,2073,315
Sass4833501,753
JSON600512
Markdown435082

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
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
Namespaces23
Interfaces5
Traits0
Classes231
▷ Abstract classes135.63%
▷ Concrete classes21894.37%
▷ Final classes10.46%
Methods1,624
▷ Static methods935.73%
▷ Public methods1,44689.04%
▷ Protected methods16510.16%
▷ Private methods130.80%
Functions534
▷ Named functions45485.02%
▷ Anonymous functions8014.98%
Constants39
▷ Global constants1641.03%
▷ Class constants2358.97%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/acf/advanced-custom-fields/assets/images/acf-logo.png3.40KB3.39KB0.23%
includes/acf/advanced-custom-fields/assets/inc/datepicker/images/ui-icons_444444_256x240.png3.68KB4.17KB0.00%
includes/acf/advanced-custom-fields/assets/inc/select2/3/select2x2.png0.64KB0.77KB0.00%
includes/acf/advanced-custom-fields/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png0.08KB0.08KB0.00%
includes/acf/advanced-custom-fields/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png3.68KB4.17KB0.00%