83% wp-naver-map-in-post

Code Review | WP Naver Map in Post

WordPress plugin WP Naver Map in Post scored83%from 54 tests.

About plugin

  • Plugin page: wp-naver-map-in-post
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 6.3.1
  • First release: Jun 16, 2015
  • Latest release: Jul 25, 2016
  • Number of updates: 14
  • Update frequency: every 29.0 days
  • Top authors: Alghost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by WP Naver Map in Post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.60 ▼2.77
Dashboard /wp-admin3.34 ▼0.0048.97 ▼13.44
Posts /wp-admin/edit.php3.39 ▲0.0457.02 ▲8.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.67 ▼23.17
Media Library /wp-admin/upload.php3.27 ▲0.0435.51 ▼2.81

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Naver Map in Post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.14 ▼0.131.75 ▼0.1343.46 ▲1.49
Dashboard /wp-admin2,211 ▲375.64 ▲0.0490.88 ▼1.2644.07 ▲0.96
Posts /wp-admin/edit.php2,123 ▲232.06 ▲0.0340.37 ▲4.7235.75 ▼1.23
Add New Post /wp-admin/post-new.php1,558 ▲1823.36 ▲0.09666.40 ▲20.3952.06 ▼0.13
Media Library /wp-admin/upload.php1,416 ▲164.31 ▲0.0697.98 ▼9.9142.36 ▼6.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-naver-map-in-post/alghost_navermap.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-naver-map-in-post === )
You can look at the official readme.txt

wp-naver-map-in-post/alghost_navermap.php 92% from 13 tests

This is the main PHP file of "WP Naver Map in Post" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-naver-map-in-post.php" instead of "alghost_navermap.php")

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
There were no executable files found in this plugin1,086 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16124217634
HTML33756299
PHP12322137
diff131716

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions9
▷ Named functions9100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.82MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png108.91KB28.41KB▼ 73.91%
icon/pin_spot2.png1.55KB1.61KB0.00%
assets/screenshot-1.png68.09KB18.73KB▼ 72.50%
assets/screenshot-4.png119.19KB34.09KB▼ 71.40%
assets/screenshot-3.png287.03KB90.95KB▼ 68.31%