84% iknow-extra

Code Review | Iknow Extra

WordPress plugin Iknow Extra scored84%from 54 tests.

About plugin

  • Plugin page: iknow-extra
  • Plugin version: 1.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 21, 2020
  • Latest release: Aug 7, 2023
  • Number of updates: 16
  • Update frequency: every 69.6 days
  • Top authors: Wpcalc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /9,706 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.28ms] Passed 4 tests

Analyzing server-side resources used by Iknow Extra
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.04 ▼0.34
Dashboard /wp-admin3.31 ▲0.0049.56 ▼0.02
Posts /wp-admin/edit.php3.36 ▲0.0041.71 ▼2.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.64 ▲5.44
Media Library /wp-admin/upload.php3.23 ▲0.0034.96 ▲1.98

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Iknow Extra
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.77 ▲0.481.81 ▲0.0739.52 ▼4.03
Dashboard /wp-admin2,211 ▲235.99 ▲1.1298.59 ▼0.7840.16 ▼3.60
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0037.51 ▼0.9337.48 ▲2.16
Add New Post /wp-admin/post-new.php1,550 ▲2818.24 ▼5.01616.12 ▼5.5147.26 ▼7.33
Media Library /wp-admin/upload.php1,396 ▲54.23 ▲0.0096.45 ▼2.5843.24 ▼2.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/iknow-extra/iknow-extra.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iknow-extra/inc/voting.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 your attention:
  • Screenshots: These screenshots require images: #1 (Post voting), #2 (Comment voting), #3 (Category full description and icon)
The official readme.txt is a good inspiration

iknow-extra/iknow-extra.php Passed 13 tests

The main PHP file in "Iknow Extra" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
The extension for free WordPress theme Iknow

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin601 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP410239409
JavaScript2171126
PO File1161866

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin