10% sanooksookjai-menu-icon

Code Review | SanookSookjai Menu Icon

WordPress plugin SanookSookjai Menu Icon scored 10% from 54 tests.

About plugin

  • Plugin page: sanooksookjai-men...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2013
  • Latest release: Mar 9, 2013
  • Number of updates: 15
  • Update frequency: every 0.2 days
  • Top authors: sanook_sookjai (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

20+ active / 4,413 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/sanooksookjai-menu-icon/sanooksookjai-menu-icon.php+325
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.12ms] Passed 4 tests

Analyzing server-side resources used by SanookSookjai Menu Icon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.63 ▼5.14
Dashboard /wp-admin3.31 ▲0.0045.36 ▲1.11
Posts /wp-admin/edit.php3.36 ▲0.0045.36 ▼3.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.49 ▲4.49
Media Library /wp-admin/upload.php3.23 ▲0.0031.87 ▼0.72

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for SanookSookjai Menu Icon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.201.52 ▼0.2441.24 ▼6.18
Dashboard /wp-admin2,209 ▲544.85 ▼0.84111.06 ▲13.5144.64 ▼0.90
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0740.05 ▼1.8436.24 ▼1.26
Add New Post /wp-admin/post-new.php1,537 ▲823.29 ▲4.79582.01 ▼66.9260.14 ▲4.66
Media Library /wp-admin/upload.php1,385 ▼64.20 ▼0.0694.72 ▼3.1341.06 ▼3.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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)
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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/sanooksookjai-menu-icon/sanooksookjai-menu-icon.php on line 325

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt might help

sanooksookjai-menu-icon/sanooksookjai-menu-icon.php 92% from 13 tests

The entry point to "SanookSookjai Menu Icon" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin309 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13412279
JavaScript12027
CSS1003

PHP code Passed 2 tests

A brief analysis 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.16
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin