83% ekiline-block-collection

Code Review | Ekiline Block Collection

WordPress plugin Ekiline Block Collection scored83%from 54 tests.

About plugin

  • Plugin page: ekiline-block-col...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Oct 2, 2022
  • Latest release: May 11, 2023
  • Number of updates: 14
  • Update frequency: every 16.0 days
  • Top authors: urielink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /452 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼0.77ms] 75% from 4 tests

Analyzing server-side resources used by Ekiline Block Collection
It is recommended to improve the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,016.20ms on /wp-admin/themes.php?page=ekiline_collection_options)
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1445.94 ▼0.01
Dashboard /wp-admin3.43 ▲0.1249.92 ▲0.04
Posts /wp-admin/edit.php3.48 ▲0.1254.35 ▲1.62
Add New Post /wp-admin/post-new.php6.02 ▲0.13102.61 ▼4.75
Media Library /wp-admin/upload.php3.35 ▲0.1242.55 ▲4.62
About Ekiline BC /wp-admin/themes.php?page=ekiline_collection_options4.581,016.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Ekiline Block Collection
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.66 ▲0.114.43 ▲2.8347.97 ▲5.54
Dashboard /wp-admin2,202 ▲285.62 ▲0.0392.17 ▲5.4137.96 ▼6.01
Posts /wp-admin/edit.php2,107 ▲102.00 ▼0.0036.07 ▼1.7032.90 ▼0.47
Add New Post /wp-admin/post-new.php6,367 ▲4,83829.19 ▲6.15862.16 ▲188.6566.34 ▲2.28
Media Library /wp-admin/upload.php1,398 ▲14.09 ▼0.1398.53 ▼18.2345.63 ▼3.09
About Ekiline BC /wp-admin/themes.php?page=ekiline_collection_options9782.0023.5244.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ekiline-block-collection/includes/ekiline-collection-info.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ekiline-block-collection/includes/ekiline-collection-modal.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ekiline-block-collection/includes/ekiline-collection-shortcode-carousel.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ekiline-block-collection/ekiline-collection.php:39

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
The official readme.txt is a good inspiration

ekiline-block-collection/ekiline-collection.php 77% from 13 tests

The principal PHP file in "Ekiline Block Collection" v. 1.0.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ekiline-block-collection.php" instead of "ekiline-collection.php")
  • 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
  • Description: The description should be shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected17,443 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
CSS48105410,480
JavaScript46157365,244
PO File24686441,096
PHP796241572
JSON350051

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin