84% import-kyero-feed

Code Review | Import Kyero Feed

WordPress plugin Import Kyero Feed scored84%from 54 tests.

About plugin

  • Plugin page: import-kyero-feed
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2023
  • Latest release: Jun 1, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: grimaceofdespair (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /171 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
This plugin's installer ran successfully

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

Server-side resources used by Import Kyero Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.19 ▲1.50
Dashboard /wp-admin3.31 ▲0.0146.98 ▼4.34
Posts /wp-admin/edit.php3.37 ▲0.0148.57 ▼4.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.80 ▼14.83
Media Library /wp-admin/upload.php3.24 ▲0.0134.15 ▼5.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Import Kyero Feed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.391.72 ▼0.5243.05 ▼2.32
Dashboard /wp-admin2,195 ▲155.62 ▼0.0085.69 ▼7.7539.77 ▼11.05
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0139.32 ▲0.6038.65 ▼5.04
Add New Post /wp-admin/post-new.php1,535 ▲618.19 ▼4.80621.42 ▼55.3765.76 ▲11.39
Media Library /wp-admin/upload.php1,403 ▲34.18 ▲0.0696.59 ▼19.9842.63 ▼5.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/import-kyero-feed/class-kyero-import.php:12

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 96% 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
3 plugin tags: importer, wordpress, kyero

import-kyero-feed/kyero-importer.php 92% from 13 tests

"Import Kyero Feed" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("import-kyero-feed.php" instead of "kyero-importer.php")

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
Everything looks great! No dangerous files found in this plugin1,407 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32943451,407

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity125.00
▷ Minimum class complexity27.00
▷ Maximum class complexity223.00
Average method complexity7.97
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods3391.67%
▷ Protected methods38.33%
▷ Private methods00.00%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
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 files were detected