10% fck-pack

Code Review | FCK Pack

WordPress plugin FCK Pack scored10%from 54 tests.

About plugin

  • Plugin page: fck-pack
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2012
  • Latest release: Sep 16, 2012
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: yuanga (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,022 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Parse error in wp-content/plugins/fck-pack/fck-pack.php+106
    syntax error, unexpected '}', expecting end of file

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

Analyzing server-side resources used by FCK Pack
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.96 ▼5.17
Dashboard /wp-admin3.31 ▼0.0452.06 ▼17.63
Posts /wp-admin/edit.php3.36 ▲0.0048.56 ▲1.83
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.64 ▼2.68
Media Library /wp-admin/upload.php3.23 ▲0.0038.99 ▲2.71

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for FCK Pack
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4314.32 ▼0.031.83 ▼0.0742.42 ▼1.19
Dashboard /wp-admin2,195 ▲245.63 ▲0.0589.44 ▼2.3542.59 ▲5.87
Posts /wp-admin/edit.php2,097 ▼32.02 ▼0.0235.83 ▼0.6136.93 ▼0.30
Add New Post /wp-admin/post-new.php1,526 ▼023.59 ▲0.35649.20 ▼51.0456.49 ▲1.56
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0598.16 ▼19.0541.60 ▼9.28

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/fck-pack/seleccio_club.php
    • > /wp-content/plugins/fck-pack/connexio.php
    • > /wp-content/plugins/fck-pack/shortcode_expl.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/fck-pack/classificacio.php:4
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/fck-pack/propers_partits.php on line 4
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/fck-pack/classificacio.php on line 3
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/fck-pack/fck-pack.php on line 106
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/fck-pack/propers_partits.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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:
  • Plugin Name: You should set the name of your plugin on the first line ( === fck-pack === )
The official readme.txt might help

fck-pack/fck-pack.php 92% from 13 tests

Analyzing the main PHP file in "FCK Pack" version 1.1
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 186 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin243 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6724242
XML1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
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
Namespaces0
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%
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

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