Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼10.39ms] Passed 4 tests
An overview of server-side resources used by Daylife
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.29 ▲1.85 |
Dashboard /wp-admin | 3.33 ▼0.01 | 47.19 ▼12.61 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.88 ▼3.43 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.42 | 72.44 ▼27.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.51 ▲5.08 |
Daylife /wp-admin/options-general.php?page=daylife-options | 3.20 | 28.90 |
Server storage [IO: ▲0.29MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Daylife
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.23 ▼1.15 | 1.83 ▲0.21 | 44.45 ▲5.46 |
Dashboard /wp-admin | 2,210 ▲22 | 5.91 ▲1.08 | 106.10 ▲4.45 | 41.34 ▼1.11 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.07 | 40.50 ▼0.10 | 36.30 ▼4.83 |
Add New Post /wp-admin/post-new.php | 6,216 ▲4,697 | 26.24 ▲2.81 | 936.77 ▲300.12 | 64.47 ▲10.93 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.07 | 95.51 ▼2.88 | 43.41 ▲1.28 |
Daylife /wp-admin/options-general.php?page=daylife-options | 1,012 | 2.05 | 22.17 | 26.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=daylife-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=daylife-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daylife/inc/meta-box.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daylife/inc/options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/daylife/daylife.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Daylife Meta Box), #2 (Plugin Settings)
daylife/daylife.php Passed 13 tests
This is the main PHP file of "Daylife" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
Add high quality licensed images relevant to your blog posts from sources like Getty, AP, Reuters and US Presswire.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin426 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 60 | 34 | 326 |
JavaScript | 1 | 2 | 0 | 69 |
CSS | 1 | 5 | 0 | 31 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.54% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 222.21KB | 77.84KB | ▼ 64.97% |
screenshot-2.png | 46.02KB | 14.13KB | ▼ 69.30% |
images/daylife32.png | 3.89KB | 1.99KB | ▼ 48.97% |