84% mandegar-feed

Code Review | Mandegar Feed

WordPress plugin Mandegar Feed scored84%from 54 tests.

About plugin

  • Plugin page: mandegar-feed
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Sep 9, 2014
  • Latest release: Oct 31, 2014
  • Number of updates: 3
  • Update frequency: every 17.7 days
  • Top authors: Ghaem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,012 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.39ms] Passed 4 tests

Analyzing server-side resources used by Mandegar Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.92 ▲3.42
Dashboard /wp-admin3.46 ▲0.1652.88 ▲5.12
Posts /wp-admin/edit.php3.36 ▲0.0144.60 ▼5.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.13 ▼13.01
Media Library /wp-admin/upload.php3.23 ▲0.0134.10 ▼2.18

Server storage [IO: ▲0.04MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Mandegar Feed: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8014.34 ▼0.221.76 ▲0.2244.35 ▼4.56
Dashboard /wp-admin2,235 ▲555.59 ▼0.08101.02 ▲15.9954.92 ▲15.73
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0041.76 ▲0.8936.94 ▲0.44
Add New Post /wp-admin/post-new.php1,526 ▼1123.00 ▼2.15604.00 ▼18.4048.91 ▼55.67
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.02108.38 ▼3.8646.78 ▲0.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mandegar-feed/mandegar-feed.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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:
  • Screenshots: Screenshot #1 (Mandegar Feed) image required
The official readme.txt might help

mandegar-feed/mandegar-feed.php Passed 13 tests

Analyzing the main PHP file in "Mandegar Feed" version 1.0
23 characters long description:
Show valuable posts of

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected52 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File1295928
PHP101324

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png37.27KB26.37KB▼ 29.26%