84% amumu-naver-searchbar

Code Review | Amumu Naver Searchbar

WordPress plugin Amumu Naver Searchbar scored84%from 54 tests.

About plugin

  • Plugin page: amumu-naver-searc...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 22, 2016
  • Latest release: Aug 22, 2016
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: Jangho Lee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,179 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Amumu Naver Searchbar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.64 ▼0.88
Dashboard /wp-admin3.31 ▲0.0154.57 ▼0.35
Posts /wp-admin/edit.php3.36 ▲0.0152.84 ▼0.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.50 ▼11.35
Media Library /wp-admin/upload.php3.24 ▲0.0137.52 ▼2.19

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Amumu Naver Searchbar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.21 ▼1.171.63 ▲0.0743.02 ▲2.13
Dashboard /wp-admin2,206 ▲185.91 ▲0.01115.94 ▲12.9042.92 ▼1.50
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0537.48 ▼4.2932.43 ▼3.72
Add New Post /wp-admin/post-new.php1,537 ▲2323.31 ▲5.66675.07 ▲4.5254.77 ▼0.16
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.00100.86 ▼14.6746.83 ▼1.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Please fix 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_shortcode() in wp-content/plugins/amumu-naver-searchbar/amumu-naver-searchbar.php:54

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

amumu-naver-searchbar/amumu-naver-searchbar.php Passed 13 tests

"Amumu Naver Searchbar" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
83 characters long description:
네이버 검색창을 원하는 위치에 넣는 간단한 플러그인 입니다.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin105 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23422105

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
3 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/btn_search_over.png0.28KB0.28KB▼ 1.05%
images/btn_search.png0.29KB0.28KB▼ 1.02%
screenshot-1.png96.87KB32.04KB▼ 66.93%