Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼4.76ms] Passed 4 tests
An overview of server-side resources used by PCF Birthday Countdown
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.09 ▼3.55 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.85 ▼12.22 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.56 ▼2.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.19 ▼1.15 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.78 ▼0.24 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for PCF Birthday Countdown
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.57 ▼0.81 | 4.42 ▲2.53 | 39.40 ▼14.30 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▲1.00 | 104.43 ▼0.92 | 38.99 ▼3.34 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.00 ▼0.05 | 38.40 ▲0.91 | 31.62 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▲12 | 23.49 ▲0.33 | 633.03 ▲1.92 | 49.82 ▼4.28 |
Media Library /wp-admin/upload.php | 1,388 ▲9 | 4.19 ▼0.03 | 96.09 ▼6.73 | 42.13 ▼1.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/pcf-birthday-countdown/pcf-birthday-countdown-main.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pcf-birthday-countdown/core/pcfcb-countdown.php:139
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pcf-birthday-countdown/core/pcfcb-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pcf-birthday-countdown/core/pcfcb-widget.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 ('Sleeps' Countdown)
pcf-birthday-countdown/pcf-birthday-countdown-main.php 85% from 13 tests
"PCF Birthday Countdown" version 2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pcf-birthday-countdown.php" instead of "pcf-birthday-countdown-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin240 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 59 | 34 | 240 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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