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.03MB] [CPU: ▼6.56ms] Passed 4 tests
Server-side resources used by Digital Clock
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.07 ▼1.22 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.46 ▲0.01 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.60 ▼0.72 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.71 ▼24.24 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.91 ▼0.04 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_dgc_register |
Browser metrics Passed 4 tests
A check of browser resources used by Digital Clock
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,180 ▲434 | 13.81 ▼0.57 | 11.06 ▲9.19 | 41.95 ▼2.39 |
Dashboard /wp-admin | 2,215 ▲24 | 4.84 ▼1.05 | 110.35 ▲11.15 | 41.69 ▼1.80 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.00 ▼0.03 | 37.63 ▼3.08 | 32.84 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 23.05 ▲4.78 | 640.26 ▲8.08 | 59.33 ▲2.27 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.18 ▼0.02 | 94.98 ▲0.26 | 42.35 ▲0.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_dgc_register
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-clock/digital-clock.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-clock/dgc_menu.php:3
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Requires php: The plugin version is formatted incorrectly
- Screenshots: Please add descriptions for these screenshots #4, #5, #6, #7, #8, #9 in digital-clock/assets to your readme.txt
digital-clock/digital-clock.php 85% from 13 tests
Analyzing the main PHP file in "Digital Clock" version 1.1.3
Please take the time to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
Everything looks great! No dangerous files found in this plugin657 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 91 | 48 | 273 |
PHP | 2 | 75 | 19 | 168 |
SVG | 1 | 0 | 0 | 146 |
JavaScript | 2 | 44 | 40 | 70 |
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.34 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin