84% wep-demo-import

Code Review | WPEventPartners Demo Import

WordPress plugin WPEventPartners Demo Import scored84%from 54 tests.

About plugin

  • Plugin page: wep-demo-import
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.7
  • WordPress version: 6.3.1
  • First release: May 17, 2020
  • Latest release: Apr 9, 2021
  • Number of updates: 6
  • Update frequency: every 55.0 days
  • Top authors: wpeventpartners (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /5,804 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.21ms] Passed 4 tests

A check of server-side resources used by WPEventPartners Demo Import
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.84 ▼8.34
Dashboard /wp-admin3.34 ▲0.0443.78 ▼4.20
Posts /wp-admin/edit.php3.39 ▲0.0449.71 ▲4.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0693.15 ▲4.07
Media Library /wp-admin/upload.php3.27 ▲0.0434.46 ▼0.35
Demo Import /wp-admin/themes.php?page=advanced-import3.2338.24

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
__wep_demo_import_do_redirect
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WPEventPartners Demo Import
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10914.75 ▲0.421.63 ▼0.7641.58 ▼6.56
Dashboard /wp-admin2,247 ▲656.03 ▲1.1696.84 ▼11.6841.18 ▼5.76
Posts /wp-admin/edit.php2,132 ▲432.06 ▲0.0140.91 ▲3.1136.32 ▼0.52
Add New Post /wp-admin/post-new.php1,561 ▲2823.18 ▼0.12664.39 ▼8.0748.45 ▼11.34
Media Library /wp-admin/upload.php1,432 ▲444.28 ▲0.0299.99 ▼7.1444.26 ▼2.93
Demo Import /wp-admin/themes.php?page=advanced-import8292.2327.8730.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • __wep_demo_import_do_redirect
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wep-demo-import/public/partials/wep-demo-import-public-display.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: one click demo import, demo import

wep-demo-import/wep-demo-import.php Passed 13 tests

Analyzing the main PHP file in "WPEventPartners Demo Import" version 1.0.4
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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
No dangerous file extensions were detected782 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP11199542665
CSS29458
JSON330033
JavaScript273226

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods516.13%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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 files were detected