90% deau-api

Code Review | deAU クラウド法人情報 API

WordPress plugin deAU クラウド法人情報 API scored90%from 54 tests.

About plugin

  • Plugin page: deau-api
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0
  • WordPress version: 6.3.1
  • First release: Jan 10, 2021
  • Latest release: Jun 12, 2022
  • Number of updates: 10
  • Update frequency: every 52.1 days
  • Top authors: caronima (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /455 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.12MB] [CPU: ▼9.16ms] Passed 4 tests

An overview of server-side resources used by deAU クラウド法人情報 API
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.38 ▲1.54
Dashboard /wp-admin3.43 ▲0.0946.98 ▼17.59
Posts /wp-admin/edit.php3.55 ▲0.1950.26 ▲3.64
Add New Post /wp-admin/post-new.php6.03 ▲0.1581.69 ▼23.94
Media Library /wp-admin/upload.php3.36 ▲0.1336.12 ▲3.37

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for deAU クラウド法人情報 API
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.70 ▼0.681.86 ▼0.0543.33 ▼0.23
Dashboard /wp-admin2,226 ▲385.85 ▲0.94102.00 ▼8.4238.80 ▼4.29
Posts /wp-admin/edit.php2,109 ▲202.01 ▲0.0039.76 ▲0.3935.24 ▼0.04
Add New Post /wp-admin/post-new.php1,534 ▲2023.25 ▲5.74681.76 ▼5.9953.07 ▲13.87
Media Library /wp-admin/upload.php1,408 ▲204.21 ▲0.0494.30 ▼10.0843.19 ▼2.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt might help

deau-api/deau-api.php Passed 13 tests

The entry point to "deAU クラウド法人情報 API" version 1.0.2 is a PHP file that has certain tags in its header comment area
65 characters long description:
deAU クラウド法人情報のAPIで法人データを取得。

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 plugin929 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP44125563
CSS2124208
PO File1313488
JavaScript10031
Markdown113028
SVG10011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity65.50
▷ Minimum class complexity1.00
▷ Maximum class complexity130.00
Average method complexity10.92
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
There were not PNG files found in your plugin