53% wp-ffpc

Code Review | WP-FFPC

WordPress plugin WP-FFPC scored53%from 54 tests.

About plugin

  • Plugin page: wp-ffpc
  • Plugin version: 1.11.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2012
  • Latest release: Feb 11, 2017
  • Number of updates: 123
  • Update frequency: every 14.8 days
  • Top authors: cadeyrn (100%)

Code review

54 tests

User reviews

42 reviews

Install metrics

2,000+ active /72,136 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.90MB] [CPU: ▼38.99ms] Passed 4 tests

An overview of server-side resources used by WP-FFPC
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.08 ▼0.3918.16 ▼21.27
Dashboard /wp-admin3.12 ▼0.1921.60 ▼28.88
Posts /wp-admin/edit.php3.12 ▼0.2417.56 ▼28.86
Add New Post /wp-admin/post-new.php3.12 ▼2.7719.34 ▼76.96
Media Library /wp-admin/upload.php3.12 ▼0.1119.19 ▼11.70
WP-FFPC /wp-admin/options-general.php?page=wp-ffpc-settings3.1218.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP-FFPC
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.25 ▼1.501.93 ▲0.2332.47 ▼10.65
Dashboard /wp-admin2,233 ▲455.91 ▲0.03100.81 ▼1.8640.36 ▼4.22
Posts /wp-admin/edit.php2,120 ▲312.36 ▲0.3632.52 ▼5.7834.53 ▼2.02
Add New Post /wp-admin/post-new.php1,544 ▲823.21 ▲0.02664.93 ▲66.2053.96 ▲7.96
Media Library /wp-admin/upload.php1,418 ▲334.29 ▲0.0697.72 ▼1.7445.30 ▲0.09
WP-FFPC /wp-admin/options-general.php?page=wp-ffpc-settings1,7622.1445.4941.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wp-ffpc/wp-ffpc-class.php+1018
    Trying to access array offset on value of type bool
  • Incomplete uninstall procedure, leaving 17 files (0.18MB) in the plugin directory
    • (new file) backends/apcu.php
    • (new file) languages/wp-ffpc.pot
    • (new file) backends/memcached.php
    • (new file) readme.txt
    • (new file) uninstall.php
    • (new file) backends/memcache.php
    • (new file) languages/wp-ffpc-it_IT.mo
    • (new file) languages/wp-ffpc-it_IT.po
    • (new file) backends/apc.php
    • (new file) composer.json
    • ...
  • Zombie WordPress options detected upon uninstall: 7 options
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-ffpc-settings
    • > Notice in wp-content/plugins/wp-ffpc/wp-ffpc-class.php+1018
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=wp-ffpc-settings
    • > Warning in wp-content/plugins/wp-ffpc/wp-ffpc-abstract.php+275
    array_key_exists() expects parameter 2 to be array, bool given
    • > GET request to /wp-admin/options-general.php?page=wp-ffpc-settings
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.

SRP 0% 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
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-ffpc/wp-ffpc-abstract.php
    • > /wp-content/plugins/wp-ffpc/wp-ffpc.php
    • > /wp-content/plugins/wp-ffpc/wp-ffpc-class.php
    • > /wp-content/plugins/wp-ffpc/wp-ffpc-backend.php
    • > /wp-content/plugins/wp-ffpc/wp-ffpc-acache.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_FFPC_Backend' not found in wp-content/plugins/wp-ffpc/backends/memcache.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_FFPC_Backend' not found in wp-content/plugins/wp-ffpc/backends/apcu.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_FFPC_Backend' not found in wp-content/plugins/wp-ffpc/backends/apc.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_FFPC_Backend' not found in wp-content/plugins/wp-ffpc/backends/memcached.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: apc, memcached, nginx, cache

wp-ffpc/wp-ffpc.php Passed 13 tests

The main file in "WP-FFPC" v. 1.11.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
WordPress in-memory full page cache plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,760 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP105678792,124
PO File1152153454
CSS1230171
JSON10011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity40.75
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes228.57%
▷ Concrete classes571.43%
▷ Final classes00.00%
Methods103
▷ Static methods98.74%
▷ Public methods5654.37%
▷ Protected methods4038.83%
▷ Private methods76.80%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants21
▷ Global constants00.00%
▷ Class constants21100.00%
▷ Public constants21100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin