73% cover-crossfade-background

Code Review | Cover CrossFade Background (CCB)

WordPress plugin Cover CrossFade Background (CCB) scored73%from 54 tests.

About plugin

  • Plugin page: cover-crossfade-b...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Apr 30, 2015
  • Latest release: May 20, 2015
  • Number of updates: 3
  • Update frequency: every 6.7 days
  • Top authors: mmichel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,063 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.09MB] [CPU: ▼10.84ms] Passed 4 tests

An overview of server-side resources used by Cover CrossFade Background (CCB)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.24 ▼7.85
Dashboard /wp-admin3.33 ▲0.0344.60 ▼8.69
Posts /wp-admin/edit.php3.38 ▲0.0345.22 ▼3.24
Add New Post /wp-admin/post-new.php5.47 ▼0.4169.05 ▼23.57
Media Library /wp-admin/upload.php3.26 ▲0.0337.02 ▲3.94

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Cover CrossFade Background (CCB)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.16 ▼1.135.03 ▲3.2738.74 ▼6.54
Dashboard /wp-admin2,209 ▲215.87 ▲0.0397.13 ▼20.8140.36 ▼6.89
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0735.45 ▲0.9630.07 ▼4.87
Add New Post /wp-admin/post-new.php690 ▼8471.73 ▼21.4621.35 ▼649.635.84 ▼59.16
Media Library /wp-admin/upload.php1,385 ▼34.31 ▲0.12108.30 ▲7.0946.16 ▲4.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_coverbg
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • recovery_mode_email_last_sent
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cover-crossfade-background/postmeta.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cover-crossfade-background/index.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === cover-crossfade-background === )
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

cover-crossfade-background/index.php 92% from 13 tests

The main PHP file in "Cover CrossFade Background (CCB)" ver. 1.01 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cover-crossfade-background.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected210 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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