84% minchu-api-manager

Code Review | Minchu API Manager

WordPress plugin Minchu API Manager scored84%from 54 tests.

About plugin

  • Plugin page: minchu-api-manager
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2019
  • Latest release: Jul 10, 2019
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: vipkomatsu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /490 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Minchu API Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.46 ▼12.61
Dashboard /wp-admin3.32 ▲0.0158.14 ▲3.21
Posts /wp-admin/edit.php3.37 ▲0.0156.13 ▼7.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.92 ▼8.76
Media Library /wp-admin/upload.php3.24 ▲0.0141.53 ▲0.47

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Minchu API Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲15714.47 ▲0.1122.23 ▲20.3744.41 ▲1.35
Dashboard /wp-admin2,218 ▲304.87 ▼0.00104.39 ▼12.4843.43 ▲2.12
Posts /wp-admin/edit.php2,101 ▲52.00 ▼0.0538.95 ▼4.6139.96 ▼5.46
Add New Post /wp-admin/post-new.php1,543 ▲2923.20 ▲5.60688.49 ▲5.4653.76 ▲2.84
Media Library /wp-admin/upload.php1,400 ▲124.26 ▼0.10108.68 ▲5.4452.02 ▲6.02

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/minchu-api-manager/templates/page-minchu-car.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minchu-api-manager/minchu-api-manager.php:164
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/minchu-api-manager/templates/page-minchu-cars.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

minchu-api-manager/minchu-api-manager.php Passed 13 tests

The main file in "Minchu API Manager" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
みんちゅうの車両情報を表示するプラグイン

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
There were no executable files found in this plugin4,161 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript82551701,826
CSS55021,698
PHP34784637

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/arrow_left.png2.75KB2.16KB▼ 21.32%
img/arrow_right.png2.80KB2.15KB▼ 23.29%
img/icon_back.png0.84KB0.61KB▼ 26.64%
img/noPhoto.png6.64KB3.18KB▼ 52.08%
img/icon_close.png0.47KB0.36KB▼ 24.64%