83% monster-one-sticky

Code Review | Monster OneSticky

WordPress plugin Monster OneSticky scored83%from 54 tests.

About plugin

  • Plugin page: monster-one-sticky
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 14, 2019
  • Latest release: Feb 14, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: vmoshikov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /467 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Monster OneSticky
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.25 ▲1.69
Dashboard /wp-admin3.32 ▲0.0145.87 ▼2.43
Posts /wp-admin/edit.php3.37 ▲0.0144.56 ▼5.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.24 ▼8.31
Media Library /wp-admin/upload.php3.24 ▲0.0138.20 ▲3.55

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Monster OneSticky
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.241.67 ▼0.1344.07 ▲1.01
Dashboard /wp-admin2,198 ▲245.58 ▼0.0794.18 ▲8.6241.43 ▼3.24
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0134.89 ▲0.7034.92 ▼0.45
Add New Post /wp-admin/post-new.php1,526 ▼023.02 ▼0.17660.43 ▼19.5865.80 ▲9.33
Media Library /wp-admin/upload.php1,394 ▼94.18 ▼0.0494.59 ▼8.7242.34 ▼2.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monster-one-sticky/functions.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (This plugin haven't screenshots)
Please take inspiration from this readme.txt

monster-one-sticky/functions.php 85% from 13 tests

The main PHP script in "Monster OneSticky" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("monster-one-sticky.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected42 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP141028
SVG10014

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.64
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%
Functions1
▷ Named functions1100.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 images were found in this plugin