Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/terror-alert-level-widget/terror-alert-widget.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; terror_alert has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.00ms] Passed 4 tests
This is a short check of server-side resources used by Terror Alert Level Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.06 ▼36.81 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.20 ▼39.95 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 7.43 ▼38.33 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.39 ▼92.92 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 7.06 ▼26.53 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_terror_alert |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Terror Alert Level Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.67 ▲0.55 | 1.76 ▼3.65 | 36.95 ▼11.02 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼1.05 | 111.39 ▼1.57 | 38.80 ▼2.86 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.04 | 40.12 ▼0.12 | 34.89 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,537 ▲16 | 23.32 ▼0.18 | 611.85 ▼3.06 | 55.55 ▲7.72 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.30 ▲0.12 | 98.42 ▼7.87 | 39.73 ▼0.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/terror-alert-level-widget/terror-alert-widget.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; terror_alert has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_terror_alert
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 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/terror-alert-level-widget/terror-alert-widget.php:14
- > 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)
No browser issues were found
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
7 plugin tags: widget, terrorist, isis, is, level...
terror-alert-level-widget/terror-alert-widget.php 92% from 13 tests
The entry point to "Terror Alert Level Widget" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("terror-alert-level-widget.php" instead of "terror-alert-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected172 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 29 | 17 | 102 |
CSS | 1 | 4 | 0 | 70 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin