10% fantastic-copyright-free

Code Review | Fantastic Copyright Free

WordPress plugin Fantastic Copyright Free scored10%from 54 tests.

About plugin

  • Plugin page: fantastic-copyrig...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 26, 2013
  • Latest release: Jan 3, 2014
  • Number of updates: 43
  • Update frequency: every 5.9 days
  • Top authors: fantastic plugins (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /14,043 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method FantasticCopyrightFree::set_copyright_free_options() should not be called statically

Server metrics [RAM: ▼0.83MB] [CPU: ▼32.26ms] Passed 4 tests

This is a short check of server-side resources used by Fantastic Copyright Free
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.64 ▼8.24
Dashboard /wp-admin3.11 ▼0.1929.92 ▼20.54
Posts /wp-admin/edit.php3.11 ▼0.2427.81 ▼21.35
Add New Post /wp-admin/post-new.php3.11 ▼2.7825.52 ▼75.16
Media Library /wp-admin/upload.php3.11 ▼0.1225.22 ▼11.99
Fantastic Copyright Free /wp-admin/options-general.php?page=copyright_free_admin3.1123.89

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 23 new options
New WordPress options
font_color_copyright
db_upgraded
fpcopy_notice_free
widget_recent-posts
theysaidso_admin_options
fpcopy_credits
fpcopy_name_free
fpcopy_align_free
fpcopy_reserved_free
font_color_options
...

Browser metrics Passed 4 tests

A check of browser resources used by Fantastic Copyright Free
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.65 ▼0.741.63 ▼0.3440.47 ▼2.91
Dashboard /wp-admin2,210 ▲225.85 ▲0.76108.74 ▼10.7640.98 ▼5.43
Posts /wp-admin/edit.php2,090 ▲12.05 ▲0.0334.00 ▼3.3133.44 ▲1.33
Add New Post /wp-admin/post-new.php1,517 ▼1617.48 ▼5.65688.67 ▲28.2661.38 ▲10.04
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.0295.87 ▼0.3342.45 ▲0.41
Fantastic Copyright Free /wp-admin/options-general.php?page=copyright_free_admin1,2311.8332.2248.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method FantasticCopyrightFree::add_admin_free_menu() should not be called statically
  • Zombie WordPress options detected upon uninstall: 23 options
    • font_family_options
    • can_compress_scripts
    • fpcopy_credits
    • fpcopy_align_free
    • fpcopy_credits_name
    • fpcopy_notice_free
    • fpcopy_name_free
    • font_size_options
    • db_upgraded
    • fpcopy_reserved_free
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=copyright_free_admin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method FantasticCopyrightFree::add_admin_free_menu() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=copyright_free_admin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method FantasticCopyrightFree::update_free_fp_details() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=copyright_free_admin
    • > Warning in wp-content/plugins/fantastic-copyright-free/inc/adminfree.php+105
    Use of undefined constant do_settings - assumed 'do_settings' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=copyright_free_admin
    • > Warning in wp-content/plugins/fantastic-copyright-free/inc/adminfree.php+245
    Use of undefined constant on - assumed 'on' (this will throw an Error in a future version of PHP)

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fantastic-copyright-free/fantasticcopyrightfree.php:187

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === fantastic-copyright-free === )
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

fantastic-copyright-free/fantasticcopyrightfree.php 92% from 13 tests

The principal PHP file in "Fantastic Copyright Free" v. 2.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fantastic-copyright-free.php" instead of "fantasticcopyrightfree.php")

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 plugin1,555 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113837820
PHP24224502
CSS1400233

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/favicon.png15.66KB5.81KB▼ 62.91%
jscolor/hs.png2.62KB7.54KB0.00%
jscolor/hv.png2.80KB7.32KB0.00%