90% embe-demo-import

Code Review | EmBe Demo Import

WordPress plugin EmBe Demo Import scored 90% from 54 tests.

About plugin

  • Plugin page: embe-demo-import
  • Plugin version: 2.2.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.2.3
  • WordPress version: 6.3.1
  • First release: Jan 3, 2020
  • Latest release: May 29, 2020
  • Number of updates: 13
  • Update frequency: every 12.2 days
  • Top authors: alithemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,185 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by EmBe Demo Import
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.82 ▲6.18
Dashboard /wp-admin3.32 ▲0.0147.09 ▲0.44
Posts /wp-admin/edit.php3.37 ▲0.0143.22 ▼10.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.80 ▼9.00
Media Library /wp-admin/upload.php3.24 ▲0.0136.80 ▲3.17

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for EmBe Demo Import
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.22 ▼1.071.96 ▲0.3143.04 ▼0.65
Dashboard /wp-admin2,209 ▲245.88 ▲0.06105.53 ▼12.6243.59 ▼4.13
Posts /wp-admin/edit.php2,086 ▼02.06 ▲0.0734.11 ▲0.9434.49 ▲3.16
Add New Post /wp-admin/post-new.php1,542 ▲918.14 ▼5.26629.85 ▼13.5455.28 ▼1.23
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0194.32 ▼4.0742.43 ▼1.26

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: one click demo import, alithemes, redux framework, magazine theme, embe theme

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

The principal PHP file in "EmBe Demo Import" v. 2.2.0 is loaded by WordPress automatically on each request
36 characters long description:
One-Click Demo Import for Embe theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin58,786 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
XML111,7883,07858,741
PHP281745

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin