78% monster-pulse

Code Review | Monster Пульс

WordPress plugin Monster Пульс scored78%from 54 tests.

About plugin

  • Plugin page: monster-pulse
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 18, 2019
  • Latest release: Feb 21, 2019
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: vmoshikov (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /1,776 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.11MB] [CPU: ▼14.20ms] Passed 4 tests

Server-side resources used by Monster Пульс
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.45 ▼6.83
Dashboard /wp-admin3.31 ▼0.0349.60 ▼17.46
Posts /wp-admin/edit.php3.37 ▲0.0146.50 ▼5.15
Add New Post /wp-admin/post-new.php5.45 ▼0.4474.07 ▼27.37
Media Library /wp-admin/upload.php3.24 ▲0.0137.52 ▼3.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Monster Пульс
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.28 ▼0.091.54 ▼0.4840.91 ▼6.98
Dashboard /wp-admin2,199 ▲255.62 ▼0.0490.55 ▼7.4644.60 ▼1.98
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0234.89 ▼4.5130.94 ▼5.42
Add New Post /wp-admin/post-new.php6,243 ▲4,71520.73 ▼2.64892.77 ▲228.4278.94 ▲8.67
Media Library /wp-admin/upload.php1,398 ▲14.12 ▼0.0696.62 ▼6.7743.40 ▼5.57
Monster Пульс /wp-admin/functions.php260.420.1017.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monster-pulse/functions.php:14

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/functions.php
    • > Network (severe)
    wp-admin/functions.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: rss, moshikov, mailru, mediaism, pulse

monster-pulse/functions.php 85% from 13 tests

Analyzing the main PHP file in "Monster Пульс" version 1.2.2
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 246 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("monster-pulse.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected252 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13414238
SVG10014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
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
PNG images were not found in this plugin