84% oomph-plugin-notes

Code Review | Oomph Plugin Notes

WordPress plugin Oomph Plugin Notes scored84%from 54 tests.

About plugin

  • Plugin page: oomph-plugin-notes
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2016
  • Latest release: Apr 14, 2016
  • Number of updates: 4
  • Update frequency: every 3.0 days
  • Top authors: bendoh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /536 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.68ms] Passed 4 tests

Analyzing server-side resources used by Oomph Plugin Notes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.14 ▼6.63
Dashboard /wp-admin3.33 ▼0.0142.83 ▼19.34
Posts /wp-admin/edit.php3.38 ▲0.0349.91 ▲3.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0379.29 ▼5.34
Media Library /wp-admin/upload.php3.25 ▲0.0335.03 ▲0.60

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Oomph Plugin Notes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.191.89 ▲0.1037.47 ▼9.17
Dashboard /wp-admin2,206 ▲215.92 ▲0.06112.37 ▼3.9242.80 ▼0.37
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0140.27 ▲2.6335.58 ▲1.09
Add New Post /wp-admin/post-new.php1,540 ▲2623.43 ▲5.59674.53 ▼31.8947.92 ▼7.45
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.0298.36 ▼13.5042.94 ▼5.43

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/oomph-plugin-notes/tests/bootstrap.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oomph-plugin-notes/oomph-plugin-notes.php:167
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/oomph-plugin-notes/tests/bootstrap.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

oomph-plugin-notes/oomph-plugin-notes.php Passed 13 tests

This is the main PHP file of "Oomph Plugin Notes" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
31 characters long description:
Add usage notes to your plugins

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
Everything looks great! No dangerous files found in this plugin277 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24463104
Bourne Shell120694
JavaScript118154
XML10014
JSON10011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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