Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.75ms] Passed 4 tests
An overview of server-side resources used by Blog Time
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.11 ▼4.66 |
Dashboard /wp-admin | 3.42 ▲0.12 | 43.42 ▼8.13 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 49.12 ▲3.73 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 93.90 ▼7.66 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.00 ▲1.44 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_blog-time |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Blog Time
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲240 | 13.84 ▼0.39 | 7.88 ▲6.03 | 37.54 ▼13.97 |
Dashboard /wp-admin | 2,251 ▲60 | 5.89 ▲0.94 | 107.62 ▲5.17 | 42.68 ▲2.66 |
Posts /wp-admin/edit.php | 2,151 ▲83 | 2.37 ▲0.37 | 34.24 ▼3.13 | 33.64 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.36 ▲5.21 | 633.09 ▼16.41 | 35.88 ▼26.76 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.50 ▲0.32 | 99.66 ▲0.34 | 41.07 ▼0.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_blog-time
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/blog-time/tests/phpunit/bootstrap.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/blog-time/tests/phpunit/bootstrap.php on line 19
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/blog-time/tests/phpunit/bootstrap.php on line 19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
10 plugin tags: admin, template tag, blog, server, datetime...
blog-time/blog-time.php Passed 13 tests
Analyzing the main PHP file in "Blog Time" version 4.0.1
104 characters long description:
Display the time according to your blog via admin toolbar widget, a sidebar widget, and/or template tag.
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
Success! There were no dangerous files found in this plugin6,008 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 760 | 357 | 4,607 |
PHP | 6 | 387 | 539 | 1,031 |
Markdown | 3 | 46 | 0 | 313 |
CSS | 1 | 6 | 3 | 22 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 20 | 17.86% |
▷ Public methods | 111 | 99.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.89% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin