83% reviewexchanger-demo-importer

Code Review | Reviewexchanger Demo Importer

WordPress plugin Reviewexchanger Demo Importer scored 83% from 54 tests.

About plugin

  • Plugin page: reviewexchanger-d...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Dec 10, 2021
  • Latest release: Jan 28, 2022
  • Number of updates: 11
  • Update frequency: every 4.5 days
  • Top authors: reviewexchanger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 6,232 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Reviewexchanger Demo Importer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.78 ▼1.70
Dashboard /wp-admin3.31 ▲0.0145.74 ▼2.53
Posts /wp-admin/edit.php3.36 ▲0.0149.58 ▼0.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.89 ▼13.18
Media Library /wp-admin/upload.php3.24 ▲0.0137.02 ▼0.64

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Reviewexchanger Demo Importer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.031.67 ▼0.1144.77 ▼2.58
Dashboard /wp-admin2,203 ▲185.86 ▲0.7797.29 ▼9.1036.98 ▼10.47
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0240.34 ▲5.4634.42 ▲0.67
Add New Post /wp-admin/post-new.php1,538 ▲1023.22 ▼0.00721.17 ▲6.3674.76 ▲24.15
Media Library /wp-admin/upload.php1,385 ▼04.24 ▲0.0195.49 ▼7.2940.49 ▼4.70

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_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
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
Almost there! Just fix the following items
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reviewexchanger-demo-importer/theme/goldly-grocery-pro/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reviewexchanger-demo-importer/theme/goldly-grocery/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reviewexchanger-demo-importer/theme/ecommerce-goldly-pro/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reviewexchanger-demo-importer/theme/goldly-pro/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reviewexchanger-demo-importer/theme/experoner-pro/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reviewexchanger-demo-importer/theme/goldly/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reviewexchanger-demo-importer/theme/experoner/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reviewexchanger-demo-importer/theme/ecommerce-goldly/demo.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

reviewexchanger-demo-importer/reviewexchanger-demo-importer.php Passed 13 tests

"Reviewexchanger Demo Importer" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
33 characters long description:
Import all the demos on your site

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
Success! There were no dangerous files found in this plugin20,672 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
XML846040620,372
PHP95715300

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 1.15MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) theme/goldly-grocery/inc/preview_import_image1.png85.09KB0.00KB▼ 100.00%
theme/experoner-pro/inc/preview_import_image1.png132.72KB132.71KB0.00%
(invalid) theme/ecommerce-goldly-pro/inc/preview_import_image1.png91.90KB0.00KB▼ 100.00%
theme/experoner/inc/preview_import_image1.png132.72KB132.71KB0.00%
(invalid) theme/ecommerce-goldly/inc/preview_import_image1.png91.90KB0.00KB▼ 100.00%