84% custom-field-groups-for-pods

Code Review | CIO Custom Field Groups for PODS

WordPress plugin CIO Custom Field Groups for PODS scored84%from 54 tests.

About plugin

  • Plugin page: custom-field-grou...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.9
  • WordPress version: 6.3.1
  • First release: Sep 5, 2015
  • Latest release: Dec 26, 2017
  • Number of updates: 7
  • Update frequency: every 120.4 days
  • Top authors: VisualData (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,256 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by CIO Custom Field Groups for PODS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.73 ▼1.49
Dashboard /wp-admin3.33 ▼0.0243.82 ▼14.63
Posts /wp-admin/edit.php3.38 ▲0.0241.99 ▼5.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.52 ▼15.07
Media Library /wp-admin/upload.php3.25 ▲0.0234.00 ▲2.36

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CIO Custom Field Groups for PODS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.51 ▼0.864.76 ▲3.0040.74 ▼2.47
Dashboard /wp-admin2,206 ▲154.85 ▼0.03106.14 ▼1.9838.76 ▼3.12
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0354.41 ▲14.4245.49 ▲6.37
Add New Post /wp-admin/post-new.php1,533 ▼923.04 ▲4.85635.94 ▲19.1950.84 ▼0.61
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0299.12 ▼0.4442.74 ▼1.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/custom-field-groups-for-pods/custom-field-groups-for-pods.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

custom-field-groups-for-pods/custom-field-groups-for-pods.php 92% from 13 tests

The main PHP script in "CIO Custom Field Groups for PODS" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin176 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP117383176

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.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
No PNG images were found in this plugin