10% memit-widget

Code Review | memit.com Widget

WordPress plugin memit.com Widget scored10%from 54 tests.

About plugin

  • Plugin page: memit-widget
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2013
  • Latest release: Nov 9, 2013
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: oleglark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /750 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▼1.93MB] [CPU: ▼57.50ms] Passed 4 tests

This is a short check of server-side resources used by memit.com Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.415.17 ▼33.77
Dashboard /wp-admin2.08 ▼1.235.36 ▼44.81
Posts /wp-admin/edit.php2.08 ▼1.286.63 ▼51.12
Add New Post /wp-admin/post-new.php2.08 ▼3.815.26 ▼98.50
Media Library /wp-admin/upload.php2.08 ▼1.155.45 ▼35.55

Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

memit.com Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.032.06 ▲0.4344.93 ▲2.14
Dashboard /wp-admin2,202 ▲285.63 ▲0.0988.19 ▼3.6838.90 ▼5.49
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0439.95 ▼2.0635.48 ▼10.99
Add New Post /wp-admin/post-new.php1,529 ▲123.09 ▲0.10627.36 ▼44.1562.09 ▼0.84
Media Library /wp-admin/upload.php1,404 ▲14.17 ▼0.01103.42 ▼5.5144.97 ▼0.51
memit.com Widget /wp-admin/skylark-memit-widget.php260.420.1012.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/memit-widget/memitwidget.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/skylark-memit-widget.php
    • > Network (severe)
    wp-admin/skylark-memit-widget.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Invalid url: ""
The official readme.txt might help

memit-widget/memitwidget.php 92% from 13 tests

The entry point to "memit.com Widget" version 0.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("memit-widget.php" instead of "memitwidget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin64 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116864

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.35MB with 0.20MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/screenshot-2.png61.87KB29.65KB▼ 52.08%
img/screenshot-3.png65.29KB30.37KB▼ 53.48%
img/screenshot-1.png234.61KB77.07KB▼ 67.15%