Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.44ms] Passed 4 tests
This is a short check of server-side resources used by UpTimer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.83 ▼7.90 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.07 ▲0.79 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.91 ▲5.33 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 94.25 ▼11.96 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.87 ▲6.15 |
UpTimer.info /wp-admin/admin.php?page=uptimer-websites | 3.27 | 30.81 |
Settings /wp-admin/admin.php?page=uptimer-settings | 3.27 | 30.14 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
UpTimer: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲115 | 13.33 ▼1.35 | 1.80 ▼0.66 | 43.85 ▲1.08 |
Dashboard /wp-admin | 2,270 ▲82 | 4.89 ▼0.01 | 105.81 ▼5.58 | 75.88 ▲31.46 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 1.97 ▼0.03 | 38.68 ▲1.35 | 36.65 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 17.55 ▼5.65 | 672.33 ▲38.48 | 48.11 ▼11.00 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.25 ▲0.02 | 103.03 ▲0.63 | 71.25 ▲26.88 |
UpTimer.info /wp-admin/admin.php?page=uptimer-websites | 790 | 2.02 | 24.02 | 24.58 |
Settings /wp-admin/admin.php?page=uptimer-settings | 816 | 2.01 | 25.06 | 26.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/uptimer/uptimer.info.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: uptimer, uptime-monitoring
uptimer/uptimer.info.php 85% from 13 tests
The main file in "UpTimer" v. 0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("uptimer.php" instead of "uptimer.info.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected395 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 69 | 51 | 395 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 18.18% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin