10% iksweb

Code Review | WordPress Старт

WordPress plugin WordPress Старт scored10%from 54 tests.

About plugin

  • Plugin page: iksweb
  • Plugin version: 3.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Sep 18, 2020
  • Latest release: Jul 27, 2023
  • Number of updates: 41
  • Update frequency: every 25.4 days
  • Top authors: centerwd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,206 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/iksweb/iksweb.php+633
    syntax error, unexpected '?>
    ', expecting function (T_FUNCTION) or const (T_CONST)

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

Server-side resources used by WordPress Старт
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.04 ▲1.77
Dashboard /wp-admin3.31 ▼0.0445.70 ▼13.74
Posts /wp-admin/edit.php3.36 ▲0.0049.05 ▲0.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.41 ▼26.53
Media Library /wp-admin/upload.php3.23 ▲0.0033.50 ▼1.16

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Старт
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.07 ▼0.281.80 ▼0.0443.01 ▲1.39
Dashboard /wp-admin2,198 ▲215.61 ▲0.0497.78 ▲8.0942.14 ▲1.61
Posts /wp-admin/edit.php2,100 ▲31.96 ▼0.1638.10 ▼2.6233.66 ▼3.68
Add New Post /wp-admin/post-new.php1,526 ▼223.17 ▲0.22679.32 ▲19.2953.69 ▼0.94
Media Library /wp-admin/upload.php1,400 ▼34.21 ▼0.01102.20 ▼4.5343.09 ▼1.63

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/iksweb/classes/forms_iksweb.php
    • > /wp-content/plugins/iksweb/classes/recaptha_iksweb.php
    • > /wp-content/plugins/iksweb/classes/cyrlitera_iksweb.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected '?>\r', expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/iksweb/iksweb.php on line 633

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: forms, iksweb, seo, recaptha, design panel...

iksweb/iksweb.php 92% from 13 tests

This is the main PHP file of "WordPress Старт" version 3.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 356 characters long)

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 detected3,094 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP45614022,752
CSS2815202
JavaScript34213139
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.72
Average class complexity71.50
▷ Minimum class complexity43.00
▷ Maximum class complexity105.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods4591.84%
▷ Protected methods24.08%
▷ Private methods24.08%
Functions37
▷ Named functions3594.59%
▷ Anonymous functions25.41%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.30MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/small-2.png57.00KB16.69KB▼ 70.71%
assets/img/status_icons.png3.25KB2.13KB▼ 34.59%
assets/img/i-info.png0.13KB0.23KB0.00%
assets/img/copy-logo.png1.65KB0.65KB▼ 60.59%
assets/img/sprite-2.png93.39KB29.11KB▼ 68.83%