84% in6ool

Code Review | in6ool

WordPress plugin in6ool scored84%from 54 tests.

About plugin

  • Plugin page: in6ool
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 8, 2016
  • Latest release: Mar 3, 2016
  • Number of updates: 11
  • Update frequency: every 2.3 days
  • Top authors: ki6ool (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.87ms] Passed 4 tests

Analyzing server-side resources used by in6ool
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.51 ▼2.69
Dashboard /wp-admin3.39 ▲0.0846.03 ▼6.43
Posts /wp-admin/edit.php3.50 ▲0.1448.10 ▼1.89
Add New Post /wp-admin/post-new.php5.97 ▲0.0894.12 ▼8.46
Media Library /wp-admin/upload.php3.31 ▲0.0837.11 ▲2.14
in6ool /wp-admin/options-general.php?page=in6ool3.2832.89

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for in6ool
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.40 ▲0.031.81 ▲0.2041.61 ▲3.40
Dashboard /wp-admin2,207 ▲165.84 ▼0.0997.19 ▼7.4940.08 ▼3.19
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0442.21 ▲5.6537.41 ▲1.90
Add New Post /wp-admin/post-new.php1,536 ▼823.06 ▲4.71617.84 ▼4.9352.05 ▼4.07
Media Library /wp-admin/upload.php1,389 ▲14.28 ▲0.1296.77 ▼4.7541.39 ▼2.97
in6ool /wp-admin/options-general.php?page=in6ool1,1262.0823.2853.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/in6ool/in6ool.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: The plugin tags were not defined
  • Screenshots: Screenshot #1 (設定画面) image required
The official readme.txt might help

in6ool/in6ool.php Passed 13 tests

"in6ool" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
ページやパーツの表示を管理します。

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected332 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12118332

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity64.00
▷ Minimum class complexity64.00
▷ Maximum class complexity64.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions00.00%
▷ Anonymous functions10100.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
1 PNG file occupies 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png183.08KB49.39KB▼ 73.02%