78% panda-pods-repeater-field

Code Review | Panda Pods Repeater Field

WordPress plugin Panda Pods Repeater Field scored78%from 54 tests.

About plugin

  • Plugin page: panda-pods-repeat...
  • Plugin version: 1.5.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Oct 22, 2016
  • Latest release: Apr 30, 2023
  • Number of updates: 93
  • Update frequency: every 25.7 days
  • Top authors: codingpanda (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

800+ active /18,763 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.01MB] [CPU: ▼1.88ms] Passed 4 tests

An overview of server-side resources used by Panda Pods Repeater Field
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.36 ▼1.68
Dashboard /wp-admin3.32 ▲0.0146.42 ▼2.72
Posts /wp-admin/edit.php3.37 ▲0.0147.12 ▼0.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.60 ▼0.31
Media Library /wp-admin/upload.php3.24 ▲0.0133.61 ▼2.39

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Panda Pods Repeater Field
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,034 ▲27313.64 ▼0.9413.05 ▲11.4343.44 ▲2.53
Dashboard /wp-admin2,208 ▲345.52 ▼0.1379.07 ▼9.5035.38 ▼13.22
Posts /wp-admin/edit.php2,119 ▲191.98 ▼0.0335.54 ▼0.1933.08 ▼0.05
Add New Post /wp-admin/post-new.php1,541 ▲1322.75 ▼0.40574.11 ▼98.6547.72 ▼11.44
Media Library /wp-admin/upload.php1,416 ▲164.24 ▲0.0394.44 ▼13.1542.74 ▼5.32

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/panda-pods-repeater-field/fields/index.php
    • > /wp-content/plugins/panda-pods-repeater-field/fields/pandarepeaterfield.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'PodsField' not found in wp-content/plugins/panda-pods-repeater-field/classes/class-podsfield-pandarepeaterfield.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: repeater field, storage, pods

panda-pods-repeater-field/panda-pods-repeater-field.php 92% from 13 tests

"Panda Pods Repeater Field" version 1.5.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 615 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 plugin5,272 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP75971,0563,222
CSS8417431,410
JavaScript29652473
PO File16466167

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity102.00
▷ Minimum class complexity18.00
▷ Maximum class complexity172.00
Average method complexity6.94
▷ Minimum method complexity1.00
▷ Maximum method complexity84.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods68
▷ Static methods11.47%
▷ Public methods6798.53%
▷ Protected methods11.47%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants990.00%
▷ Class constants110.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/save-icon.png2.88KB1.47KB▼ 48.93%
fields/images/arrow-down.png1.27KB0.47KB▼ 63.11%
images/save-icon-tran.png2.95KB1.58KB▼ 46.29%
fields/images/arrow-up.png1.26KB0.47KB▼ 62.59%