Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.78ms] Passed 4 tests
Server-side resources used by Earthquake Monitor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.85 ▲3.72 |
Dashboard /wp-admin | 3.45 ▲0.14 | 44.59 ▼1.48 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 40.63 ▼5.78 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 80.49 ▼9.35 |
Media Library /wp-admin/upload.php | 3.37 ▲0.13 | 35.96 ▲1.51 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_earthquakewidget |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
earthquake_db_version |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_earthquakemonitor |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Earthquake Monitor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.27 ▼0.26 | 1.65 ▼0.41 | 45.28 ▼4.29 |
Dashboard /wp-admin | 2,197 ▲20 | 5.54 ▼0.12 | 86.28 ▼14.80 | 40.19 ▼3.81 |
Posts /wp-admin/edit.php | 2,099 ▲2 | 2.01 ▲0.00 | 35.11 ▼0.32 | 30.16 ▼4.74 |
Add New Post /wp-admin/post-new.php | 1,528 ▼9 | 21.48 ▲3.37 | 679.72 ▲63.71 | 56.97 ▼11.72 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.23 ▼0.01 | 94.79 ▼0.81 | 42.92 ▼0.34 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
4 plugin tags: widget, geological, monitor, earthquake
earthquakemonitor/EarthquakeMonitor.php 85% from 13 tests
The primary PHP file in "Earthquake Monitor" version 2.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("earthquakemonitor.php" instead of "EarthquakeMonitor.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected760 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 156 | 74 | 591 |
PO File | 1 | 53 | 55 | 130 |
CSS | 1 | 5 | 0 | 39 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 52.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 5.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 11 | |
▷ Static methods | 3 | 27.27% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tsunami.png | 0.56KB | 0.28KB | ▼ 49.39% |