78% daum-book-api

Code Review | DAUM BOOK API

WordPress plugin DAUM BOOK API scored78%from 54 tests.

About plugin

  • Plugin page: daum-book-api
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: May 15, 2015
  • Latest release: May 29, 2015
  • Number of updates: 5
  • Update frequency: every 3.0 days
  • Top authors: pangol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /737 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by DAUM BOOK API
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.95 ▲0.06
Dashboard /wp-admin3.33 ▼0.0153.99 ▼13.48
Posts /wp-admin/edit.php3.38 ▲0.0354.42 ▲0.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.25 ▼6.26
Media Library /wp-admin/upload.php3.25 ▲0.0336.74 ▲1.38
Daum Book API Setting /wp-admin/options-general.php?page=daum-book-api/daum-book-api.php3.2033.89

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/daum-book-api/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for DAUM BOOK API
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.18 ▼1.392.16 ▲0.3644.48 ▼1.04
Dashboard /wp-admin2,225 ▲194.86 ▼1.00108.43 ▲3.4443.61 ▲3.27
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0040.13 ▼0.3937.32 ▼0.50
Add New Post /wp-admin/post-new.php6,248 ▲4,71726.13 ▲2.93962.42 ▲308.1759.57 ▼1.98
Media Library /wp-admin/upload.php1,404 ▲74.15 ▼0.06135.30 ▲32.9153.79 ▲8.15
Daum Book API Setting /wp-admin/options-general.php?page=daum-book-api/daum-book-api.php8222.0229.8429.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=daum-book-api/daum-book-api.php
    • > Notice in wp-content/plugins/daum-book-api/daum-book-api.php+56
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=daum-book-api/daum-book-api.php
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daum-book-api/daum-book-api.php:30

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, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (setting), #2 (In post, use shortcode)
The official readme.txt is a good inspiration

daum-book-api/daum-book-api.php 92% from 13 tests

The principal PHP file in "DAUM BOOK API" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected137 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File19941

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ 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