84% monkee-boy-wp-essentials

Code Review | Monkee-Boy Essentials

WordPress plugin Monkee-Boy Essentials scored84%from 54 tests.

About plugin

  • Plugin page: monkee-boy-wp-ess...
  • Plugin version: 1.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6.1
  • WordPress version: 6.3.1
  • First release: Jul 17, 2019
  • Latest release: Feb 12, 2021
  • Number of updates: 8
  • Update frequency: every 72.1 days
  • Top authors: monkeeboy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /524 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.60ms] Passed 4 tests

This is a short check of server-side resources used by Monkee-Boy Essentials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.81 ▲0.96
Dashboard /wp-admin3.33 ▲0.0345.07 ▼3.73
Posts /wp-admin/edit.php3.38 ▲0.0350.32 ▼2.90
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.54 ▼19.18
Media Library /wp-admin/upload.php3.26 ▲0.0336.20 ▼0.60

Server storage [IO: ▲0.04MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Monkee-Boy Essentials
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,782 ▲2513.64 ▼0.741.72 ▼0.2641.49 ▼3.86
Dashboard /wp-admin2,201 ▲165.86 ▲1.00100.01 ▼6.3535.99 ▼9.53
Posts /wp-admin/edit.php2,078 ▼141.96 ▼0.0636.97 ▼5.3528.53 ▼9.41
Add New Post /wp-admin/post-new.php1,529 ▼1323.70 ▲5.28670.51 ▲2.4359.85 ▲4.93
Media Library /wp-admin/upload.php1,380 ▼84.24 ▲0.0198.56 ▼2.3637.51 ▼7.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MonkeeBoy\\Essentials\\add_action() in wp-content/plugins/monkee-boy-wp-essentials/include/theme.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MonkeeBoy\\Essentials\\add_action() in wp-content/plugins/monkee-boy-wp-essentials/include/admin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MonkeeBoy\\Essentials\\add_action() in wp-content/plugins/monkee-boy-wp-essentials/include/search.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: essentials

monkee-boy-wp-essentials/mbwp-essentials.php 92% from 13 tests

"Monkee-Boy Essentials" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("monkee-boy-wp-essentials.php" instead of "mbwp-essentials.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
No dangerous file extensions were detected146 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP74496120
Markdown111026

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
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
Namespaces1
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected