84% fg-fix-serialized-strings

Code Review | FG Fix Serialized Strings

WordPress plugin FG Fix Serialized Strings scored84%from 54 tests.

About plugin

  • Plugin page: fg-fix-serialized...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Oct 31, 2013
  • Latest release: May 13, 2021
  • Number of updates: 14
  • Update frequency: every 196.5 days
  • Top authors: Kerfred (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /7,903 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.20ms] Passed 4 tests

An overview of server-side resources used by FG Fix Serialized Strings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.37 ▼5.33
Dashboard /wp-admin3.33 ▲0.0348.46 ▼0.23
Posts /wp-admin/edit.php3.38 ▲0.0249.19 ▲0.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.02 ▼11.56
Media Library /wp-admin/upload.php3.25 ▲0.0236.62 ▲2.71
Fix Serialized Strings /wp-admin/tools.php?page=fg-fix-serialized-strings3.2231.35

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

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

Browser metrics Passed 4 tests

FG Fix Serialized Strings: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.011.55 ▼0.6840.72 ▲1.21
Dashboard /wp-admin2,204 ▲195.83 ▼0.04100.09 ▼4.3939.19 ▼6.16
Posts /wp-admin/edit.php2,090 ▲12.02 ▲0.0337.75 ▼5.2434.55 ▼2.14
Add New Post /wp-admin/post-new.php1,541 ▲823.20 ▼0.18657.81 ▲55.9352.10 ▼21.13
Media Library /wp-admin/upload.php1,389 ▲14.33 ▲0.08109.48 ▲9.2847.53 ▲4.88
Fix Serialized Strings /wp-admin/tools.php?page=fg-fix-serialized-strings7662.0523.6526.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-fix-serialized-strings/fg-fix-serialized-strings.tpl.php:1

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: serialized, widgets, wp_options, fix, unserialized

fg-fix-serialized-strings/fg-fix-serialized-strings.php Passed 13 tests

The main file in "FG Fix Serialized Strings" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Fix the broken serialized strings in the options and postmeta tables

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
Good job! No executable or dangerous file extensions detected168 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21547118
PO File18850

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods333.33%
▷ Protected methods111.11%
▷ Private methods555.56%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin