83% theme-data-importor-by-phoeniixx

Code Review | One Click Demo Importer By Phoeniixx

WordPress plugin One Click Demo Importer By Phoeniixx scored83%from 54 tests.

About plugin

  • Plugin page: theme-data-import...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Dec 8, 2017
  • Latest release: Nov 19, 2019
  • Number of updates: 37
  • Update frequency: every 19.2 days
  • Top authors: phoeniixx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /14,202 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.48MB] [CPU: ▼84,396.61ms] Passed 4 tests

An overview of server-side resources used by One Click Demo Importer By Phoeniixx
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1343.10 ▲0.35
Dashboard /wp-admin3.48 ▼2.3151.72 ▼337,585.80
Posts /wp-admin/edit.php3.60 ▲0.2051.82 ▼3.42
Add New Post /wp-admin/post-new.php6.06 ▲0.14104.15 ▲13.54
Media Library /wp-admin/upload.php3.41 ▲0.1439.25 ▲2.44

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

One Click Demo Importer By Phoeniixx: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲5714.31 ▼0.291.89 ▲0.3752.69 ▲3.51
Dashboard /wp-admin2,201 ▲245.63 ▲0.0296.84 ▲6.4341.96 ▲1.70
Posts /wp-admin/edit.php2,103 ▼02.00 ▼0.0037.56 ▼5.6234.04 ▼4.96
Add New Post /wp-admin/post-new.php1,529 ▼822.96 ▲4.72650.73 ▲2.3057.23 ▼6.51
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.0197.98 ▼1.1943.88 ▼1.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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
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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/theme-data-importor-by-phoeniixx/inc/class-merlin-importer.php on line 15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/theme-data-importor-by-phoeniixx/inc/class-merlin-importer.php on line 15
    • > PHP Fatal error
      require(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/theme-data-importor-by-phoeniixx/inc/class-merlin-importer.php on line 15

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 90% 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
9 plugin tags: theme, demo, demo data, phoeniixx, importer...

theme-data-importor-by-phoeniixx/main.php 77% from 13 tests

The main PHP script in "One Click Demo Importer By Phoeniixx" version 1.1.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("theme-data-importor-by-phoeniixx.php" instead of "main.php")
  • Description: The description should be shorter than 140 characters (currently 220 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,891 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP44622722,371
SVG1172629
JavaScript110331542
CSS1193349

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity130.25
▷ Minimum class complexity3.00
▷ Maximum class complexity273.00
Average method complexity9.91
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods58
▷ Static methods00.00%
▷ Public methods5086.21%
▷ Protected methods813.79%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin