89% inn-object-cache-diagnosis-inn

Code Review | INN Object Cache Diagnosis | INN 对象缓存医师

WordPress plugin INN Object Cache Diagnosis | INN 对象缓存医师 scored89%from 54 tests.

About plugin

  • Plugin page: inn-object-cache-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.7-5.7.99
  • WordPress version: 6.3.1
  • First release: Sep 19, 2018
  • Latest release: Mar 4, 2021
  • Number of updates: 7
  • Update frequency: every 128.2 days
  • Top authors: kmvan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.39ms] Passed 4 tests

An overview of server-side resources used by INN Object Cache Diagnosis | INN 对象缓存医师
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.79 ▼4.51
Dashboard /wp-admin3.34 ▲0.0444.56 ▼4.92
Posts /wp-admin/edit.php3.39 ▲0.0346.45 ▼6.79
Add New Post /wp-admin/post-new.php5.93 ▲0.0390.04 ▼5.35
Media Library /wp-admin/upload.php3.27 ▲0.0336.92 ▲0.03

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

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

Browser metrics Passed 4 tests

Checking browser requirements for INN Object Cache Diagnosis | INN 对象缓存医师
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.191.77 ▲0.0441.45 ▼2.77
Dashboard /wp-admin2,206 ▲184.84 ▼1.06107.42 ▲6.9542.28 ▼3.24
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.2039.78 ▲0.5334.16 ▼1.13
Add New Post /wp-admin/post-new.php1,540 ▲2623.37 ▲5.88608.12 ▼101.4453.45 ▼4.54
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.0094.55 ▼22.8744.07 ▼3.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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:
  • Plugin Name: You should set the name of your plugin on the first line ( === inn-object-cache-diagnosis-inn === )
Please take inspiration from this readme.txt

inn-object-cache-diagnosis-inn/inn-object-cache-diagnosis.php 92% from 13 tests

The entry point to "INN Object Cache Diagnosis | INN 对象缓存医师" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("inn-object-cache-diagnosis-inn.php" instead of "inn-object-cache-diagnosis.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
There were no executable files found in this plugin158 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1508158

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods330.00%
▷ Protected methods00.00%
▷ Private methods770.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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