Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/dolomon/dolomon.php+117
Undefined variable: pagenow
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.60ms] Passed 4 tests
A check of server-side resources used by Dolomon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 42.36 ▼0.68 |
Dashboard /wp-admin | 3.43 ▲0.09 | 53.31 ▼10.43 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 48.74 ▼0.89 |
Add New Post /wp-admin/post-new.php | 5.67 ▼0.22 | 75.47 ▼18.04 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.60 ▼1.05 |
Dolomon /wp-admin/options-general.php?page=dolomon-settings | 3.32 | 33.81 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_dolo_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dolomon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.72 ▲0.34 | 2.14 ▲0.27 | 43.91 ▼1.53 |
Dashboard /wp-admin | 2,196 ▲18 | 5.53 ▼0.12 | 82.59 ▼32.94 | 35.68 ▼7.35 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.94 ▼0.07 | 34.85 ▼0.16 | 33.71 ▲0.48 |
Add New Post /wp-admin/post-new.php | 7,087 ▲5,561 | 21.20 ▼2.50 | 873.23 ▲178.43 | 67.64 ▲6.78 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.14 ▼0.00 | 96.79 ▼21.36 | 42.13 ▼8.85 |
Dolomon /wp-admin/options-general.php?page=dolomon-settings | 857 | 2.03 | 24.59 | 26.22 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_dolo_widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dolomon/dolomon.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/dolomon/metabox.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dolomon/widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dolomon/settings.php:10
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: stats, url
dolomon/dolomon.php Passed 13 tests
"Dolomon" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
Transforms an URL into an URL provided by a Dolomon server, which creates visit statistics
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,722 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 65 | 91 | 1,053 |
JavaScript | 3 | 14 | 4 | 342 |
PO File | 1 | 85 | 94 | 202 |
CSS | 3 | 22 | 0 | 125 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 19 | |
▷ Named functions | 17 | 89.47% |
▷ Anonymous functions | 2 | 10.53% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected