Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/advanced-earthquake-monitor/AdvancedEarthquakeMonitor.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; AdvancedEarthquakeMonitor has a deprecated constructor
Server metrics [RAM: ▼2.29MB] [CPU: ▼350.40ms] Passed 4 tests
A check of server-side resources used by Advanced Earthquake Monitor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.44 | 4.86 ▼48.11 |
Dashboard /wp-admin | 2.09 ▼1.31 | 4.95 ▼28.20 |
Posts /wp-admin/edit.php | 2.09 ▼1.55 | 4.13 ▼33.53 |
Add New Post /wp-admin/post-new.php | 2.09 ▼4.88 | 4.46 ▼1,291.76 |
Media Library /wp-admin/upload.php | 2.09 ▼1.20 | 4.09 ▼22.54 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_advancedearthquakemonitor |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Earthquake Monitor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲40 | 15.74 ▼0.01 | 6.92 ▲0.64 | 2.77 ▲0.29 |
Dashboard /wp-admin | 2,895 ▲34 | 6.11 ▼0.15 | 119.62 ▼13.20 | 157.93 ▼4.63 |
Posts /wp-admin/edit.php | 2,657 ▼34 | 3.24 ▼0.00 | 65.17 ▲0.79 | 139.68 ▼5.13 |
Add New Post /wp-admin/post-new.php | 1,773 ▲56 | 21.68 ▲0.60 | 441.53 ▼19.40 | 160.29 ▼4.41 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.52 ▼0.04 | 142.34 ▲3.10 | 183.84 ▼5.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/advanced-earthquake-monitor/AdvancedEarthquakeMonitor.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; AdvancedEarthquakeMonitor has a deprecated constructor
- The uninstall procedure has failed, leaving 1 option in the database
- widget_advancedearthquakemonitor
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)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-earthquake-monitor/AdvancedEarthquakeMonitor.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: map, monitor, widget, worldwide, earthquakes...
advanced-earthquake-monitor/AdvancedEarthquakeMonitor.php 92% from 13 tests
"Advanced Earthquake Monitor" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-earthquake-monitor.php" instead of "AdvancedEarthquakeMonitor.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin398 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 112 | 52 | 398 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 7.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected