84% wordlift-add-on-for-wp-all-import

Code Review | Import into Schema.org by WordLift

WordPress plugin Import into Schema.org by WordLift scored84%from 54 tests.

About plugin

  • Plugin page: wordlift-add-on-f...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Feb 2, 2022
  • Latest release: Jul 26, 2023
  • Number of updates: 4
  • Update frequency: every 135.0 days
  • Top authors: ziodave (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /793 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by Import into Schema.org by WordLift
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.67 ▲1.93
Dashboard /wp-admin3.32 ▼0.0345.01 ▼15.02
Posts /wp-admin/edit.php3.37 ▲0.0145.83 ▲4.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.98 ▼14.88
Media Library /wp-admin/upload.php3.25 ▲0.0135.20 ▲4.43

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Import into Schema.org by WordLift
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.29 ▲0.001.89 ▲0.1845.57 ▲0.17
Dashboard /wp-admin2,203 ▲265.57 ▼0.0985.17 ▼16.1838.74 ▼1.67
Posts /wp-admin/edit.php2,115 ▲151.98 ▲0.0435.18 ▼8.7234.31 ▲3.11
Add New Post /wp-admin/post-new.php1,535 ▲723.20 ▼0.15664.21 ▲51.5959.90 ▲14.27
Media Library /wp-admin/upload.php1,414 ▲144.18 ▲0.0196.47 ▲0.0346.43 ▲2.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordlift-add-on-for-wp-all-import/all-import-wordlift-add-on.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: wordlift, search engine optimization, wp all import, csv, import seo...

wordlift-add-on-for-wp-all-import/all-import-wordlift-add-on.php 85% from 13 tests

The main PHP script in "Import into Schema.org by WordLift" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("wordlift-add-on-for-wp-all-import.php" instead of "all-import-wordlift-add-on.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin994 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2288129994

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.72
Average class complexity209.00
▷ Minimum class complexity209.00
▷ Maximum class complexity209.00
Average method complexity5.24
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin