89% king-ie

Code Review | king_IE

WordPress plugin king_IE scored 89% from 54 tests.

About plugin

  • Plugin page: king-ie
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.6.0
  • WordPress version: 6.3.1
  • First release: Nov 27, 2020
  • Latest release: Dec 26, 2020
  • Number of updates: 8
  • Update frequency: every 3.8 days
  • Top authors: mohsensd1373 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 401 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 gracefully, with no errors

Server metrics [RAM: ▼0.48MB] [CPU: ▼15.63ms] Passed 4 tests

An overview of server-side resources used by king_IE
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2043.29 ▼0.90
Dashboard /wp-admin3.50 ▲0.2055.04 ▲0.39
Posts /wp-admin/edit.php3.64 ▲0.2855.45 ▲3.29
Add New Post /wp-admin/post-new.php3.38 ▼2.5140.13 ▼58.96
Media Library /wp-admin/upload.php3.40 ▲0.1733.03 ▼3.03

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for king_IE
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲15014.71 ▲0.281.88 ▲0.0740.65 ▼10.63
Dashboard /wp-admin2,341 ▲1356.47 ▲1.61135.45 ▲23.3582.19 ▲38.82
Posts /wp-admin/edit.php2,265 ▲1763.36 ▲1.3554.73 ▲16.2670.13 ▲37.90
Add New Post /wp-admin/post-new.php1,541 ▲2723.05 ▲5.55737.67 ▲76.4383.43 ▲25.90
Media Library /wp-admin/upload.php1,404 ▲134.11 ▼0.0179.49 ▼20.3479.06 ▲31.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: svg, creating icons, image making, image

king-ie/king_IE.php 85% from 13 tests

The entry point to "king_IE" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("king-ie.php" instead of "king_IE.php")

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
Good job! No executable or dangerous file extensions detected16,664 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36838,02613,460
CSS2128962,011
PHP113249759
SVG501246
PO File18795184
XML1004

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.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions1885.71%
▷ Anonymous functions314.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png65.70KB20.08KB▼ 69.44%
assets/banner-1544x500.png94.51KB27.90KB▼ 70.48%
assets/icon-256x256.png11.39KB4.21KB▼ 63.05%
icon.png7.30KB2.85KB▼ 60.92%
assets/icon-128x128.png9.34KB3.79KB▼ 59.44%