83% kijo-serpbook-api

Code Review | KIJO Serpbook API

WordPress plugin KIJO Serpbook API scored83%from 54 tests.

About plugin

  • Plugin page: kijo-serpbook-api
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2018
  • Latest release: Jan 26, 2018
  • Number of updates: 12
  • Update frequency: every 3.5 days
  • Top authors: kijokijo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /754 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.83ms] Passed 4 tests

An overview of server-side resources used by KIJO Serpbook API
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.52 ▼1.29
Dashboard /wp-admin3.42 ▲0.1154.82 ▼4.57
Posts /wp-admin/edit.php3.53 ▲0.1748.85 ▼4.87
Add New Post /wp-admin/post-new.php6.03 ▲0.13468.81 ▲365.13
Media Library /wp-admin/upload.php3.34 ▲0.1139.38 ▲7.43
Serpbook API /wp-admin/options-general.php?page=serpbook-api3.3135.01

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for KIJO Serpbook API
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲2014.46 ▲0.112.55 ▲0.3944.20 ▼2.98
Dashboard /wp-admin2,206 ▲265.75 ▲0.1599.07 ▲8.1242.20 ▲1.96
Posts /wp-admin/edit.php2,108 ▲82.22 ▲0.2336.45 ▼2.1732.82 ▼5.32
Add New Post /wp-admin/post-new.php1,628 ▲10229.20 ▲6.01743.90 ▲32.6962.54 ▲9.39
Media Library /wp-admin/upload.php1,411 ▲144.34 ▲0.22107.71 ▼9.7342.99 ▼6.87
Serpbook API /wp-admin/options-general.php?page=serpbook-api8881.7829.6128.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=serpbook-api
    • > Network (severe)
    wp-admin/[object%20Object] - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

kijo-serpbook-api/serpbook-api.php 62% from 13 tests

The principal PHP file in "KIJO Serpbook API" v. 1.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kijo-serpbook-api.php" instead of "serpbook-api.php")
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.6" instead of "4.0.0")
  • Description: Please keep the plugin description shorter than 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected724 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5185449561
CSS1207112
JavaScript2172351

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.25
▷ Minimum class complexity3.00
▷ Maximum class complexity34.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes375.00%
Methods39
▷ Static methods37.69%
▷ Public methods3076.92%
▷ Protected methods410.26%
▷ Private methods512.82%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin