Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.15ms] Passed 4 tests
This is a short check of server-side resources used by PLOS ALM Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.70 ▲1.38 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.85 ▼2.36 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.14 ▼3.77 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.71 ▼11.83 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.85 ▲4.63 |
ALM Widget settings /wp-admin/themes.php?page=alm_widget | 3.38 | 29.99 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_alm_widget |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for PLOS ALM Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.21 ▼1.19 | 4.89 ▲3.21 | 39.98 ▼2.99 |
Dashboard /wp-admin | 2,222 ▲34 | 4.85 ▼0.05 | 99.24 ▼9.11 | 41.64 ▲1.35 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.99 ▼0.02 | 39.06 ▼3.04 | 36.63 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 23.15 ▲0.10 | 666.34 ▲18.98 | 59.08 ▲5.76 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.31 ▲0.11 | 110.28 ▲13.20 | 48.75 ▲4.07 |
ALM Widget settings /wp-admin/themes.php?page=alm_widget | 822 | 2.04 | 30.73 | 32.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_alm_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=alm_widget
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=alm_widget
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=alm_widget
- > Notice in wp-content/plugins/plos-alm-widget/almwidget.php+177
Trying to access array offset on value of type bool
- > GET request to /wp-admin/themes.php?page=alm_widget
- > Notice in wp-content/plugins/plos-alm-widget/almwidget.php+188
Undefined index: text_apikey
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 add_action() in wp-content/plugins/plos-alm-widget/almwidget.php:16
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: articles, alm, metrics, plugin, widget...
plos-alm-widget/almwidget.php 85% from 13 tests
The entry point to "PLOS ALM Widget" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("plos-alm-widget.php" instead of "almwidget.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
No dangerous file extensions were detected382 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 36 | 382 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 12.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin