Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.06ms] Passed 4 tests
An overview of server-side resources used by Daily Proverb
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.14 ▲0.11 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.06 ▼7.65 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 43.26 ▼4.10 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 81.60 ▼13.65 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 32.49 ▼2.85 |
Verses /wp-admin/admin.php?page=dpv-verses | 3.27 | 29.38 |
Versions /wp-admin/admin.php?page=dpv-versions | 3.55 | 30.09 |
Server storage [IO: ▲4.90MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
jwdpv0001_bible |
widget_recent-posts |
jwdpv0001_proverbs |
jwdpv0001_otd |
Browser metrics Passed 4 tests
An overview of browser requirements for Daily Proverb
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.85 ▲0.56 | 1.74 ▼0.02 | 44.69 ▲0.87 |
Dashboard /wp-admin | 2,225 ▲43 | 5.90 ▲0.02 | 102.30 ▼2.43 | 36.17 ▼9.03 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.08 ▲0.04 | 35.82 ▼3.03 | 31.41 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,549 ▲14 | 23.36 ▼0.03 | 658.62 ▼7.62 | 55.31 ▼12.03 |
Media Library /wp-admin/upload.php | 1,413 ▲28 | 4.23 ▲0.02 | 95.62 ▼1.24 | 41.20 ▼3.48 |
Verses /wp-admin/admin.php?page=dpv-verses | 1,571 | 1.94 | 25.58 | 40.98 |
Versions /wp-admin/admin.php?page=dpv-versions | 5,089 | 2.49 | 44.83 | 69.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 76 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dpv-versions
- > Notice in wp-content/plugins/daily-proverb/libs/html/admin.version.html.php+17
Only variables should be passed by reference
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/daily-proverb/libs/php/shortcodes.php
- > /wp-content/plugins/daily-proverb/libs/html/promoadd.php
- > /wp-content/plugins/daily-proverb/libs/php/admin.php
- > /wp-content/plugins/daily-proverb/libs/php/functions.php
- > /wp-content/plugins/daily-proverb/index.php
- > /wp-content/plugins/daily-proverb/init.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant JWDPV0001_HTML_PATH - assumed 'JWDPV0001_HTML_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/daily-proverb/libs/html/admin.verses.html.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/daily-proverb/libs/html/credits.php:2
- > PHP Warning
include(JWDPV0001_HTML_PATHpromoadd.php): failed to open stream: No such file or directory in wp-content/plugins/daily-proverb/libs/html/admin.version.html.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/daily-proverb/libs/html/admin.version.html.php:5
- > PHP Warning
include(JWDPV0001_HTML_PATHpromoadd.php): failed to open stream: No such file or directory in wp-content/plugins/daily-proverb/libs/html/admin.verses.html.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/daily-proverb/libs/html/admin.verses.html.php:5
- > PHP Warning
Use of undefined constant JWDPV0001_HTML_PATH - assumed 'JWDPV0001_HTML_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/daily-proverb/libs/html/admin.version.html.php on line 3
- > PHP Warning
include(): Failed opening 'JWDPV0001_HTML_PATHpromoadd.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/daily-proverb/libs/html/admin.version.html.php on line 3
- > PHP Warning
include(): Failed opening 'JWDPV0001_HTML_PATHpromoadd.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/daily-proverb/libs/html/admin.verses.html.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (screenshot-1.jpg) image required
daily-proverb/index.php 92% from 13 tests
The main PHP file in "Daily Proverb" ver. 2.0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("daily-proverb.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,886 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 39 | 0 | 0 | 1,049 |
PHP | 10 | 51 | 300 | 316 |
PO File | 5 | 104 | 187 | 300 |
LESS | 1 | 18 | 0 | 114 |
JavaScript | 1 | 12 | 6 | 106 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 17 | |
▷ Named functions | 14 | 82.35% |
▷ Anonymous functions | 3 | 17.65% |
Constants | 7 | |
▷ Global constants | 7 | 100.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