84% products-admin-notes-simple

Code Review | Product Admin Notes Simple

WordPress plugin Product Admin Notes Simple scored84%from 54 tests.

About plugin

  • Plugin page: products-admin-no...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Jun 26, 2017
  • Latest release: Aug 1, 2017
  • Number of updates: 9
  • Update frequency: every 4.0 days
  • Top authors: jamiehall16 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /2,158 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: ▲0.00MB] [CPU: ▼8.36ms] Passed 4 tests

Server-side resources used by Product Admin Notes Simple
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.26 ▼13.47
Dashboard /wp-admin3.31 ▲0.0148.95 ▼5.10
Posts /wp-admin/edit.php3.36 ▲0.0050.99 ▼0.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.68 ▼14.17
Media Library /wp-admin/upload.php3.23 ▲0.0042.27 ▲4.21

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Product Admin Notes Simple: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.461.71 ▼0.1741.43 ▼1.02
Dashboard /wp-admin2,195 ▲155.61 ▼0.0284.69 ▼14.1542.26 ▲1.54
Posts /wp-admin/edit.php2,103 ▼01.95 ▼0.0636.68 ▼0.2733.56 ▼1.89
Add New Post /wp-admin/post-new.php1,526 ▼023.57 ▼0.03680.37 ▼24.7559.58 ▲5.97
Media Library /wp-admin/upload.php1,394 ▼64.28 ▲0.0796.72 ▼15.4043.70 ▼0.12

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/products-admin-notes-simple/product-admin-notes-simple.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: admin notes, woocommerce, products, products notes, notes...

products-admin-notes-simple/product-admin-notes-simple.php 85% from 13 tests

The principal PHP file in "Product Admin Notes Simple" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("products-admin-notes-simple.php" instead of "product-admin-notes-simple.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161123

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin