83% mihdan-mailru-pulse-feed

Code Review | Zen Feed

WordPress plugin Zen Feed scored83%from 54 tests.

About plugin

  • Plugin page: mihdan-mailru-pul...
  • Plugin version: 0.7.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Feb 20, 2019
  • Latest release: Nov 18, 2023
  • Number of updates: 62
  • Update frequency: every 27.9 days
  • Top authors: mihdan (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

400+ active /14,332 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.56MB] [CPU: ▲2.09ms] 75% from 4 tests

A check of server-side resources used by Zen Feed
Please fix the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 655.33ms on /wp-admin/options-general.php?page=mihdan_mailru_pulse_feed)
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5641.13 ▲1.71
Dashboard /wp-admin3.93 ▲0.6253.96 ▲6.58
Posts /wp-admin/edit.php3.98 ▲0.6257.72 ▲11.21
Add New Post /wp-admin/post-new.php6.42 ▲0.5484.39 ▼4.86
Media Library /wp-admin/upload.php3.77 ▲0.5338.38 ▲4.93
Zen Feed /wp-admin/options-general.php?page=mihdan_mailru_pulse_feed4.14655.33

Server storage [IO: ▲0.40MB] [DB: ▲0.05MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 141 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Zen Feed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲18614.63 ▲0.231.78 ▲0.0239.27 ▼7.98
Dashboard /wp-admin2,356 ▲1766.28 ▲0.65121.16 ▲20.3443.27 ▼2.17
Posts /wp-admin/edit.php2,299 ▲1993.58 ▲1.5657.70 ▲20.5635.69 ▼3.88
Add New Post /wp-admin/post-new.php6,317 ▲4,78225.98 ▲0.55873.96 ▲267.3238.66 ▼19.70
Media Library /wp-admin/upload.php1,439 ▲364.44 ▲0.1986.15 ▼14.0941.12 ▼3.26
Zen Feed /wp-admin/options-general.php?page=mihdan_mailru_pulse_feed4,0423.6255.63108.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 98× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mihdan-mailru-pulse-feed/vendor/composer/installers/src/Composer/Installers/SyliusInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mihdan-mailru-pulse-feed/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mihdan-mailru-pulse-feed/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mihdan-mailru-pulse-feed/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mihdan-mailru-pulse-feed/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mihdan-mailru-pulse-feed/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mihdan-mailru-pulse-feed/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mihdan-mailru-pulse-feed/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mihdan-mailru-pulse-feed/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mihdan-mailru-pulse-feed/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

mihdan-mailru-pulse-feed/mihdan-mailru-pulse-feed.php 85% from 13 tests

The main PHP file in "Zen Feed" ver. 0.7.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 185 characters long)
  • Domain Path: The domain path folder does not exist ("/languages/")

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 detected7,261 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
PHP1301,7453,2196,325
Markdown23040656
JSON100264
CSS10016

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity7.17
▷ Minimum class complexity1.00
▷ Maximum class complexity133.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes120
▷ Abstract classes21.67%
▷ Concrete classes11898.33%
▷ Final classes00.00%
Methods407
▷ Static methods4310.57%
▷ Public methods33381.82%
▷ Protected methods5413.27%
▷ Private methods204.91%
Functions12
▷ Named functions18.33%
▷ Anonymous functions1191.67%
Constants12
▷ Global constants18.33%
▷ Class constants1191.67%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin