84% editors-note

Code Review | Editors note.

WordPress plugin Editors note. scored84%from 54 tests.

About plugin

  • Plugin page: editors-note
  • Plugin version: 0.0.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5
  • WordPress version: 6.3.1
  • First release: Sep 23, 2020
  • Latest release: Sep 23, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: hamworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /595 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.94ms] Passed 4 tests

Server-side resources used by Editors note.
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.46 ▲1.30
Dashboard /wp-admin3.32 ▲0.0148.56 ▼5.10
Posts /wp-admin/edit.php3.37 ▲0.0146.35 ▼4.71
Add New Post /wp-admin/post-new.php5.91 ▲0.02101.56 ▼7.25
Media Library /wp-admin/upload.php3.24 ▲0.0136.39 ▲2.43

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Editors note.
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.68 ▼0.684.51 ▲2.6344.34 ▼0.81
Dashboard /wp-admin2,203 ▲155.82 ▲0.9396.41 ▼5.8940.20 ▼5.12
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0234.46 ▼5.3332.79 ▼2.45
Add New Post /wp-admin/post-new.php6,415 ▲4,88228.32 ▲4.88909.57 ▲303.3357.33 ▲3.67
Media Library /wp-admin/upload.php1,388 ▼04.17 ▲0.0295.00 ▼10.3839.79 ▼7.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HAMWORKS\\WP\\Editors_Note\\add_action() in wp-content/plugins/editors-note/editors-note.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: gutenberg, block, term

editors-note/editors-note.php 92% from 13 tests

The main PHP file in "Editors note." ver. 0.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected18,671 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON40018,441
JavaScript4139126
PHP231249
XML14725
Markdown16016
CSS21014

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces1
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%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
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
No PNG images were found in this plugin