Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install 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
Server metrics [RAM: ▼1.74MB] [CPU: ▼53.56ms] Passed 4 tests
A check of server-side resources used by Advanced Earthquake Monitor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.26 ▼1.20 | 5.78 ▼33.28 |
Dashboard /wp-admin | 2.28 ▼1.06 | 5.93 ▼55.26 |
Posts /wp-admin/edit.php | 2.28 ▼1.08 | 5.85 ▼39.93 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.61 | 8.16 ▼85.75 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 5.88 ▼29.15 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_advancedearthquakemonitor |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Earthquake Monitor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.28 ▼0.07 | 1.64 ▼0.01 | 36.64 ▼7.05 |
Dashboard /wp-admin | 2,198 ▲21 | 5.66 ▲0.10 | 83.39 ▼15.87 | 40.68 ▼5.04 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.08 | 33.46 ▼3.33 | 34.37 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.19 ▲0.19 | 653.37 ▼56.53 | 51.64 ▼10.68 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.17 ▲0.00 | 99.30 ▲3.93 | 44.01 ▼0.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > 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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_advancedearthquakemonitor
- theysaidso_admin_options
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)
Everything seems fine, however 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: map, list, widget, earthquakes, worldwide...
advanced-earthquake-monitor/AdvancedEarthquakeMonitor.php 92% from 13 tests
The primary PHP file in "Advanced Earthquake Monitor" version 1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file 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 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! 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
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin