Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/moreaboutme/moreaboutme-widget.php+37
Methods with the same name as their class will not be constructors in a future version of PHP; moreaboutme_widget_Widget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼46.59ms] Passed 4 tests
This is a short check of server-side resources used by MoreAboutMe Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 8.52 ▼34.03 |
Dashboard /wp-admin | 2.29 ▼1.01 | 10.55 ▼36.42 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 11.76 ▼33.42 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.87 ▼82.48 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 8.91 ▼23.04 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_moreaboutme_widget |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for MoreAboutMe Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.24 ▼1.08 | 4.76 ▲3.06 | 43.47 ▼9.03 |
Dashboard /wp-admin | 2,211 ▲26 | 4.78 ▼1.02 | 99.95 ▼7.87 | 38.73 ▼6.87 |
Posts /wp-admin/edit.php | 2,091 ▼1 | 2.01 ▼0.01 | 35.75 ▼0.61 | 32.62 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,516 ▲2 | 17.47 ▼0.16 | 681.43 ▲0.50 | 54.39 ▼1.26 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.17 ▲0.01 | 95.03 ▼7.84 | 42.72 ▼3.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in moreaboutme_widget_Widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_moreaboutme_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/moreaboutme/moreaboutme-widget.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: picture, about, image, widget, author
moreaboutme/moreaboutme-widget.php 77% from 13 tests
The principal PHP file in "MoreAboutMe Widget" v. 1.3.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 284 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("moreaboutme.php" instead of "moreaboutme-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin188 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 14 | 14 | 98 |
PHP | 1 | 26 | 39 | 80 |
CSS | 1 | 2 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
No PNG files were detected