83% newpath-wildapricotpress-add-on-iframe-widget

Code Review | NewPath WildApricotPress Add-on – iFrame Widget

WordPress plugin NewPath WildApricotPress Add-on – iFrame Widget scored83%from 54 tests.

About plugin

  • Plugin page: newpath-wildapric...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: Sep 8, 2022
  • Latest release: Nov 10, 2022
  • Number of updates: 6
  • Update frequency: every 10.5 days
  • Top authors: asirota (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by NewPath WildApricotPress Add-on – iFrame Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.50 ▼10.05
Dashboard /wp-admin3.31 ▼0.0454.12 ▼10.27
Posts /wp-admin/edit.php3.36 ▲0.0050.83 ▲0.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.10 ▼15.61
Media Library /wp-admin/upload.php3.23 ▲0.0037.18 ▲0.02

Server storage [IO: ▲1.35MB] [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: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for NewPath WildApricotPress Add-on – iFrame Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.40 ▲0.042.10 ▲0.2043.58 ▲0.08
Dashboard /wp-admin2,195 ▲185.66 ▼0.0391.04 ▲1.8040.96 ▲0.76
Posts /wp-admin/edit.php2,100 ▲32.06 ▲0.0539.68 ▲3.7534.67 ▼1.50
Add New Post /wp-admin/post-new.php1,545 ▲1423.14 ▼0.20687.49 ▼9.1254.10 ▲2.39
Media Library /wp-admin/upload.php1,400 ▼34.32 ▲0.15107.76 ▼3.0146.38 ▼8.59

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newpath-wildapricotpress-add-on-iframe-widget/wap-addon-wa-iframe.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Inserting WildApricot Press iframe into a page)
You can take inspiration from this readme.txt

newpath-wildapricotpress-add-on-iframe-widget/wap-addon-wa-iframe.php 85% from 13 tests

This is the main PHP file of "NewPath WildApricotPress Add-on – iFrame Widget" version 1.0.1, 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: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("newpath-wildapricotpress-add-on-iframe-widget.php" instead of "wap-addon-wa-iframe.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin39,142 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON30038,113
Markdown11210553
JavaScript474240390
PHP2153761
Sass22018
CSS22137

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected