Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.24 ▼7.85 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.60 ▼8.69 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.22 ▼3.24 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.41 | 69.05 ▼23.57 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.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 |
---|
wp_coverbg |
New WordPress options |
---|
widget_recent-posts |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Cover CrossFade Background (CCB)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.16 ▼1.13 | 5.03 ▲3.27 | 38.74 ▼6.54 |
Dashboard /wp-admin | 2,209 ▲21 | 5.87 ▲0.03 | 97.13 ▼20.81 | 40.36 ▼6.89 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.07 | 35.45 ▲0.96 | 30.07 ▼4.87 |
Add New Post /wp-admin/post-new.php | 690 ▼847 | 1.73 ▼21.46 | 21.35 ▼649.63 | 5.84 ▼59.16 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.31 ▲0.12 | 108.30 ▲7.09 | 46.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
- > PHP Fatal error
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
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 50 | 45 | 108 |
JavaScript | 2 | 29 | 7 | 82 |
CSS | 1 | 3 | 0 | 20 |
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 code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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