10% fmtc-pods

Code Review | FMTC Pods

WordPress plugin FMTC Pods scored10%from 54 tests.

About plugin

  • Plugin page: fmtc-pods
  • Plugin version: 1.5.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Dec 8, 2014
  • Latest release: Sep 20, 2018
  • Number of updates: 13
  • Update frequency: every 114.7 days
  • Top authors: fmtc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,673 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'fmtcpod_activate' not found or invalid function name

Server metrics [RAM: ▼0.91MB] [CPU: ▼36.99ms] Passed 4 tests

A check of server-side resources used by FMTC Pods
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.86 ▼3.08
Dashboard /wp-admin3.05 ▼0.3022.19 ▼42.66
Posts /wp-admin/edit.php3.05 ▼0.3123.40 ▼24.27
Add New Post /wp-admin/post-new.php3.05 ▼2.8423.75 ▼72.63
Media Library /wp-admin/upload.php3.05 ▼0.1923.56 ▼8.41
FMTC Pods /wp-admin/options-general.php?page=fmtcpods3.0527.02

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 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

Checking browser requirements for FMTC Pods
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.18 ▼1.501.71 ▼0.3043.29 ▼12.87
Dashboard /wp-admin2,210 ▲225.85 ▲0.98105.20 ▼11.5441.28 ▼1.66
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0339.19 ▲2.9238.22 ▲2.54
Add New Post /wp-admin/post-new.php6,448 ▲4,91225.03 ▲1.93886.16 ▲233.9953.12 ▼6.63
Media Library /wp-admin/upload.php1,392 ▲44.19 ▲0.01106.28 ▲8.3250.15 ▲7.57
FMTC Pods /wp-admin/options-general.php?page=fmtcpods8052.0327.3233.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=fmtcpods
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=fmtcpods
    • > Notice in wp-content/plugins/fmtc-pods/fmtcpods.php+205
    Trying to access array offset on value of type null

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 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 FMTC\\PODS\\get_file_data() in wp-content/plugins/fmtc-pods/fmtcpods.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === fmtc-pods === )
The official readme.txt is a good inspiration

fmtc-pods/fmtcpods.php 92% from 13 tests

Analyzing the main PHP file in "FMTC Pods" version 1.5.2
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fmtc-pods.php" instead of "fmtcpods.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin191 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13643154
JavaScript27137

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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
Namespaces1
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%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants1
▷ Global constants1100.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