84% penguin-integration

Code Review | Penguin Integration

WordPress plugin Penguin Integration scored84%from 54 tests.

About plugin

  • Plugin page: penguin-integration
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 2, 2015
  • Latest release: Jan 2, 2015
  • Number of updates: 26
  • Update frequency: every 0.1 days
  • Top authors: mozeryansky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /607 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.16ms] Passed 4 tests

This is a short check of server-side resources used by Penguin Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.03 ▼5.94
Dashboard /wp-admin3.34 ▲0.0353.30 ▲0.23
Posts /wp-admin/edit.php3.39 ▲0.0348.56 ▲3.12
Add New Post /wp-admin/post-new.php5.92 ▲0.0397.18 ▲6.46
Media Library /wp-admin/upload.php3.26 ▲0.0337.72 ▲1.94
Penguin /wp-admin/options-general.php?page=penguin-integration3.2328.61

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
penguinIntegrationOptions
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Penguin Integration: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.28 ▼1.011.76 ▼0.3444.71 ▼3.70
Dashboard /wp-admin2,213 ▲254.85 ▼1.02108.39 ▲5.0543.22 ▼1.59
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0539.71 ▲2.7334.43 ▲0.26
Add New Post /wp-admin/post-new.php1,536 ▲1723.32 ▲0.01674.14 ▼49.4657.27 ▲2.83
Media Library /wp-admin/upload.php1,392 ▲74.17 ▼0.1098.29 ▼9.7843.43 ▲0.00
Penguin /wp-admin/options-general.php?page=penguin-integration8532.0325.2929.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • penguinIntegrationOptions
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/penguin-integration/settingsPage.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/penguin-integration/penguinintegration.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: ecommerce, buy button, apple pay, penguin

penguin-integration/penguinintegration.php 85% from 13 tests

Analyzing the main PHP file in "Penguin Integration" version 1.0
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("penguin-integration.php" instead of "penguinintegration.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 232 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin208 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26982208

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin