10% moreaboutme

Code Review | MoreAboutMe Widget

WordPress plugin MoreAboutMe Widget scored10%from 54 tests.

About plugin

  • Plugin page: moreaboutme
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Apr 22, 2014
  • Latest release: Jun 9, 2015
  • Number of updates: 24
  • Update frequency: every 17.4 days
  • Top authors: sierramike (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,858 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.188.52 ▼34.03
Dashboard /wp-admin2.29 ▼1.0110.55 ▼36.42
Posts /wp-admin/edit.php2.29 ▼1.0611.76 ▼33.42
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.87 ▼82.48
Media Library /wp-admin/upload.php2.29 ▼0.948.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.24 ▼1.084.76 ▲3.0643.47 ▼9.03
Dashboard /wp-admin2,211 ▲264.78 ▼1.0299.95 ▼7.8738.73 ▼6.87
Posts /wp-admin/edit.php2,091 ▼12.01 ▼0.0135.75 ▼0.6132.62 ▲0.02
Add New Post /wp-admin/post-new.php1,516 ▲217.47 ▼0.16681.43 ▲0.5054.39 ▼1.26
Media Library /wp-admin/upload.php1,390 ▲24.17 ▲0.0195.03 ▼7.8442.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

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:
LanguageFilesBlank linesComment linesLines of code
PO File2141498
PHP1263980
CSS12010

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 code0.16
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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