84% wp-clickable-background

Code Review | WP Clickable Background

WordPress plugin WP Clickable Background scored84%from 54 tests.

About plugin

  • Plugin page: wp-clickable-back...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.13-5.6
  • WordPress version: 6.3.1
  • First release: Nov 12, 2020
  • Latest release: Dec 29, 2020
  • Number of updates: 7
  • Update frequency: every 6.9 days
  • Top authors: webmarcello (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

This is a short check of server-side resources used by WP Clickable Background
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.98 ▲3.75
Dashboard /wp-admin3.33 ▼0.0142.42 ▼19.86
Posts /wp-admin/edit.php3.38 ▲0.0345.33 ▼1.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.00 ▼6.79
Media Library /wp-admin/upload.php3.25 ▲0.0238.63 ▲3.25
WP Clickable Background /wp-admin/options-general.php?page=wp-clickable-background-admin3.2431.56

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Clickable Background
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.33 ▼1.134.61 ▲2.9044.00 ▲4.48
Dashboard /wp-admin2,210 ▲244.88 ▼0.03108.21 ▲0.8839.13 ▼2.95
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0241.84 ▲4.3842.42 ▲7.22
Add New Post /wp-admin/post-new.php1,517 ▼1623.40 ▼0.03652.93 ▲53.4264.37 ▲3.37
Media Library /wp-admin/upload.php1,395 ▲44.21 ▼0.00102.08 ▲5.5140.70 ▼2.26
WP Clickable Background /wp-admin/options-general.php?page=wp-clickable-background-admin9372.0423.7827.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-clickable-background/views/admin-form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-clickable-background/includes/settingLink.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-clickable-background/includes/config.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-clickable-background/wp-clickable-background.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: background, javascript, clickable, click

wp-clickable-background/wp-clickable-background.php Passed 13 tests

The primary PHP file in "WP Clickable Background" version 1.0.1 is used by WordPress to initiate all plugin functionality
75 characters long description:
Wordpress Plugin in order to make the background of your website clickable.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin335 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP94019285
JavaScript25032
Markdown19018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity2.33
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected