89% master-kit

Code Review | Master Kit

WordPress plugin Master Kit scored89%from 54 tests.

About plugin

  • Plugin page: master-kit
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.3
  • WordPress version: 6.3.1
  • First release: Nov 30, 2019
  • Latest release: Nov 27, 2020
  • Number of updates: 6
  • Update frequency: every 65.3 days
  • Top authors: aihimel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /854 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.97ms] Passed 4 tests

A check of server-side resources used by Master Kit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1437.84 ▼6.13
Dashboard /wp-admin3.48 ▲0.1453.48 ▼8.70
Posts /wp-admin/edit.php3.55 ▲0.2054.04 ▲1.25
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.70 ▼18.31
Media Library /wp-admin/upload.php3.34 ▲0.1143.66 ▲5.10

Server storage [IO: ▲4.04MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/master-kit/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 84 new files
Database: no new tables, 12 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_mkps_widget
widget_theysaidso_widget
widget_mkp_widget
widget_mkcs_widget
widget_mkc_widget
widget_mks_widget
widget_mka_widget
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Master Kit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲24815.14 ▲0.841.83 ▲0.0340.87 ▼1.10
Dashboard /wp-admin2,378 ▲1726.63 ▲1.77135.11 ▲28.7842.78 ▲1.90
Posts /wp-admin/edit.php2,274 ▲1743.54 ▲1.5254.62 ▲18.6234.74 ▲0.19
Add New Post /wp-admin/post-new.php1,539 ▲1323.37 ▲5.83630.11 ▼54.3235.19 ▼26.70
Media Library /wp-admin/upload.php1,414 ▲174.33 ▲0.1395.35 ▼25.2648.48 ▲0.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 12 options
    • widget_mkps_widget
    • can_compress_scripts
    • widget_mkc_widget
    • widget_theysaidso_widget
    • db_upgraded
    • widget_mks_widget
    • widget_mkcs_widget
    • widget_mkp_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Frontend View) image missing
Please take inspiration from this readme.txt

master-kit/master-kit.php Passed 13 tests

The entry point to "Master Kit" version 1.0.2 is a PHP file that has certain tags in its header comment area
38 characters long description:
A helper plugin for masterpiece theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin24,187 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
XML215229212,072
SVG1002,671
CSS818702,557
JavaScript24909612,004
Sass1434341,768
LESS1434441,758
PHP24280801,277
Markdown142080

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity9.14
▷ Minimum class complexity4.00
▷ Maximum class complexity22.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2896.55%
▷ Protected methods00.00%
▷ Private methods13.45%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.23MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) inc/masterpiece-demo-data/demo-one/preview.png235.23KB0.00KB▼ 100.00%
vendor/owl-carousel-2.3.4/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%