10% fantasktic

Code Review | Fantasktic

WordPress plugin Fantasktic scored 10% from 54 tests.

About plugin

  • Plugin page: fantasktic
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 5.9.2
  • First release: Jun 26, 2013
  • Latest release: Feb 6, 2014
  • Number of updates: 19
  • Update frequency: every 13.8 days
  • Top authors: aled1m (57.89%)godie322 (47.37%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,163 total downloads

Benchmarks

Plugin footprint 58% 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
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/fantasktic/fantasktic.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; fantasktic_fix_submit has a deprecated constructor

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

Analyzing server-side resources used by Fantasktic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0159.13 ▲6.43
Dashboard /wp-admin3.41 ▲0.0131.84 ▼0.62
Posts /wp-admin/edit.php3.65 ▲0.0136.54 ▼55.35
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.11 ▼1,173.65
Media Library /wp-admin/upload.php3.30 ▲0.0124.00 ▼5.58

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
frf_plugin_nonce

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fantasktic
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,778 ▲2415.97 ▲0.296.31 ▲0.152.23 ▼0.82
Dashboard /wp-admin2,907 ▲466.02 ▼0.13163.77 ▲34.15180.23 ▲18.25
Posts /wp-admin/edit.php2,669 ▼223.13 ▼0.1062.78 ▼2.30220.75 ▲71.33
Add New Post /wp-admin/post-new.php1,678 ▼3217.00 ▼4.46431.97 ▼11.58197.96 ▲36.76
Media Library /wp-admin/upload.php1,712 ▲175.50 ▼0.03123.24 ▼33.65251.76 ▲52.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • frf_plugin_nonce

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/fantasktic/menu-page.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/fantasktic/fantasktic.php:13
    • > PHP Warning
      Use of undefined constant FRF_PLUGIN_LOCAL - assumed 'FRF_PLUGIN_LOCAL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fantasktic/menu-page.php on line 10
    • > PHP Warning
      Use of undefined constant FRF_PLUGIN_LOCAL - assumed 'FRF_PLUGIN_LOCAL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fantasktic/menu-page.php on line 3
    • > PHP Warning
      Use of undefined constant FRF_SITE_URL - assumed 'FRF_SITE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fantasktic/menu-page.php on line 55

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: service, fantasktic, support, admin

fantasktic/fantasktic.php Passed 13 tests

The main PHP script in "Fantasktic" version 2.0.1 is automatically included on every request by WordPress
52 characters long description:
A simple, secure way to fix any one thing WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin94 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2442394

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin