68% sourceplay-navermap

Code Review | sourceplay-navermap

WordPress plugin sourceplay-navermap scored68%from 54 tests.

About plugin

  • Plugin page: sourceplay-navermap
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 0.1-5.7.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2020
  • Latest release: Dec 8, 2021
  • Number of updates: 6
  • Update frequency: every 85.0 days
  • Top authors: ldwin79 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /5,897 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.82MB] [CPU: ▼55.33ms] Passed 4 tests

An overview of server-side resources used by sourceplay-navermap
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.70 ▼5.12
Dashboard /wp-admin2.12 ▼1.186.95 ▼51.41
Posts /wp-admin/edit.php2.12 ▼1.237.74 ▼41.03
Add New Post /wp-admin/post-new.php2.12 ▼3.766.41 ▼98.97
Media Library /wp-admin/upload.php2.12 ▼1.116.86 ▼29.92
NaverMap /wp-admin/admin.php?page=source_playground_index2.127.45
추가하기 /wp-admin/admin.php?page=sourceplay_navermap_add2.127.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by sourceplay-navermap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.68 ▲0.331.80 ▼0.3444.75 ▼0.78
Dashboard /wp-admin2,218 ▲385.61 ▼0.0199.12 ▲8.2145.48 ▲0.51
Posts /wp-admin/edit.php2,123 ▲261.98 ▼0.0336.74 ▲0.1637.02 ▼4.57
Add New Post /wp-admin/post-new.php1,553 ▲2218.35 ▼4.77630.46 ▼15.9672.31 ▲12.05
Media Library /wp-admin/upload.php1,423 ▲234.20 ▼0.05109.32 ▲7.5448.80 ▲7.33
NaverMap /wp-admin/admin.php?page=source_playground_index8581.9724.6758.05
추가하기 /wp-admin/admin.php?page=sourceplay_navermap_add1,9807.98160.0763.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sourceplay_navermap_add
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sourceplay_navermap_add
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)

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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/sourceplay-navermap/maplist.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sourceplay-navermap/index.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === sourceplay-navermap === )
You can look at the official readme.txt

sourceplay-navermap/index.php 92% from 13 tests

The entry point to "sourceplay-navermap" version 0.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sourceplay-navermap.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,097 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS24701,136
PHP37715630
JavaScript35922331

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected