10% santapan-minda

Code Review | Santapan Minda

WordPress plugin Santapan Minda scored 10% from 54 tests.

About plugin

  • Plugin page: santapan-minda
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 5.8.1
  • First release: May 23, 2011
  • Latest release: Nov 5, 2016
  • Number of updates: 15
  • Update frequency: every 132.9 days
  • Top authors: Eizil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 793 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/santapan-minda/santapanminda.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; SantapanMindaWidget has a deprecated constructor

Server metrics [RAM: ▼1.85MB] [CPU: ▼187.24ms] Passed 4 tests

This is a short check of server-side resources used by Santapan Minda
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.78 ▼1.064.65 ▼32.98
Dashboard /wp-admin1.80 ▼1.2610.65 ▼35.16
Posts /wp-admin/edit.php1.80 ▼1.316.78 ▼33.49
Add New Post /wp-admin/post-new.php1.80 ▼3.645.14 ▼647.31
Media Library /wp-admin/upload.php1.80 ▼1.215.92 ▼27.08

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
widget_santapanmindawidget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Santapan Minda
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.80 ▲0.2210.09 ▲0.7750.19 ▲3.91
Dashboard /wp-admin2,967 ▲335.95 ▲0.04134.02 ▼5.93117.22 ▲3.35
Posts /wp-admin/edit.php2,739 ▼02.85 ▼0.0069.13 ▲6.6488.48 ▼8.96
Add New Post /wp-admin/post-new.php1,500 ▼17218.56 ▼0.33361.70 ▼26.09107.75 ▼1.93
Media Library /wp-admin/upload.php1,810 ▼05.03 ▼0.01147.09 ▼2.84119.34 ▲0.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/santapan-minda/santapanminda.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; SantapanMindaWidget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_santapanmindawidget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === santapan-minda === )
  • Screenshots: Screenshot #1 (Contoh paparan widget SantapanMinda screenshot-1.jpg.) image missing
The official readme.txt is a good inspiration

santapan-minda/santapanminda.php 92% from 13 tests

The main PHP file in "Santapan Minda" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("santapan-minda.php" instead of "santapanminda.php")

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
Success! There were no dangerous files found in this plugin42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1112542

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected