89% nibble-make-an-offer

Code Review | Nibble Make an Offer App

WordPress plugin Nibble Make an Offer App scored89%from 54 tests.

About plugin

  • Plugin page: nibble-make-an-offer
  • Plugin version: 0.9.8
  • PHP compatiblity: 7.4.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2022
  • Latest release: Oct 23, 2023
  • Number of updates: 21
  • Update frequency: every 19.5 days
  • Top authors: nibbletechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /481 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Nibble Make an Offer App
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.76 ▼1.49
Dashboard /wp-admin3.31 ▼0.0443.09 ▼16.36
Posts /wp-admin/edit.php3.36 ▲0.0048.07 ▲4.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.36 ▼13.18
Media Library /wp-admin/upload.php3.23 ▲0.0032.97 ▲0.49

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Nibble Make an Offer App
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.321.57 ▼0.5238.47 ▼2.94
Dashboard /wp-admin2,198 ▲275.63 ▲0.0383.72 ▼2.9937.32 ▼3.82
Posts /wp-admin/edit.php2,100 ▼31.98 ▲0.0337.88 ▲3.8734.82 ▲2.60
Add New Post /wp-admin/post-new.php1,526 ▼023.34 ▲0.07662.30 ▼6.9758.59 ▼9.38
Media Library /wp-admin/upload.php1,394 ▼64.19 ▼0.0495.76 ▼9.1840.94 ▼3.45

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
2 plugin tags: ecommerce, woocommerce

nibble-make-an-offer/nibble.php 85% from 13 tests

"Nibble Make an Offer App" version 0.9.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • 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
  • Main file name: The principal plugin file should be the same as the plugin slug ("nibble-make-an-offer.php" instead of "nibble.php")

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
There were no executable files found in this plugin1,794 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP53222651,417
JavaScript27333376
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity23.33
▷ Minimum class complexity6.00
▷ Maximum class complexity55.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods40
▷ Static methods512.50%
▷ Public methods3690.00%
▷ Protected methods00.00%
▷ Private methods410.00%
Functions56
▷ Named functions4885.71%
▷ Anonymous functions814.29%
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 files were detected