90% newheap-azure-logic-apps

Code Review | NewHeap Azure Logic apps

WordPress plugin NewHeap Azure Logic apps scored90%from 54 tests.

About plugin

  • Plugin page: newheap-azure-log...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 19, 2020
  • Latest release: Feb 19, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: newheap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /377 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
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼2.90ms] Passed 4 tests

This is a short check of server-side resources used by NewHeap Azure Logic apps
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2149.75 ▲8.86
Dashboard /wp-admin3.51 ▲0.2155.43 ▲5.34
Posts /wp-admin/edit.php3.57 ▲0.2152.65 ▲0.69
Add New Post /wp-admin/post-new.php6.12 ▲0.2390.03 ▼19.33
Media Library /wp-admin/upload.php3.44 ▲0.2144.56 ▲1.72
Add New /wp-admin/post-new.php?post_type=nhala_integr3.5448.69
Logic app integrations /wp-admin/edit.php?post_type=nhala_integr3.4849.58

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by NewHeap Azure Logic apps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11514.41 ▲0.141.75 ▲0.1944.15 ▲1.29
Dashboard /wp-admin2,279 ▲1045.60 ▼0.2792.33 ▼4.6738.97 ▼7.98
Posts /wp-admin/edit.php2,188 ▲852.07 ▲0.0635.49 ▼5.3532.35 ▼6.74
Add New Post /wp-admin/post-new.php1,553 ▲2223.20 ▲0.24735.16 ▲45.8063.54 ▲2.38
Media Library /wp-admin/upload.php1,488 ▲914.19 ▼0.0896.89 ▼10.5444.89 ▼4.98
Add New /wp-admin/post-new.php?post_type=nhala_integr2,7442.6956.2755.27
Logic app integrations /wp-admin/edit.php?post_type=nhala_integr1,1161.9832.9931.30

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

Smoke tests Passed 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 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 a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: ms logic, azure apps, logic apps, ms apps, microsoft flow...

newheap-azure-logic-apps/Main.php 92% from 13 tests

The main PHP file in "NewHeap Azure Logic apps" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("newheap-azure-logic-apps.php" instead of "Main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,183 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
PHP608784863,967
CSS1407214
JavaScript1402

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.74
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces20
Interfaces3
Traits0
Classes55
▷ Abstract classes916.36%
▷ Concrete classes4683.64%
▷ Final classes12.17%
Methods274
▷ Static methods41.46%
▷ Public methods25994.53%
▷ Protected methods20.73%
▷ Private methods134.74%
Functions36
▷ Named functions00.00%
▷ Anonymous functions36100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected