84% cyclone-demo-importer

Code Review | Cyclone Demo Importer

WordPress plugin Cyclone Demo Importer scored84%from 54 tests.

About plugin

  • Plugin page: cyclone-demo-impo...
  • Plugin version: 2.9.53
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2020
  • Latest release: Nov 1, 2023
  • Number of updates: 112
  • Update frequency: every 11.1 days
  • Top authors: cyclonetheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /447,144 total downloads

Benchmarks

Plugin footprint 82% 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.17MB] [CPU: ▼8.24ms] Passed 4 tests

This is a short check of server-side resources used by Cyclone Demo Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2243.45 ▲0.91
Dashboard /wp-admin3.52 ▲0.1750.81 ▼14.94
Posts /wp-admin/edit.php3.57 ▲0.2149.51 ▼2.59
Add New Post /wp-admin/post-new.php6.04 ▲0.1583.93 ▼16.33
Media Library /wp-admin/upload.php3.38 ▲0.1538.46 ▲6.96

Server storage [IO: ▲37.56MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • The filesystem usage should be lower than 25MB (currently using 37.56MB)
Filesystem: 444 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Cyclone Demo Importer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.51 ▲0.161.83 ▲0.1543.18 ▼2.38
Dashboard /wp-admin2,192 ▲145.61 ▼0.1094.47 ▼18.3543.24 ▼2.23
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0333.84 ▼2.7135.11 ▼0.60
Add New Post /wp-admin/post-new.php1,526 ▼223.62 ▲0.62730.30 ▲42.4256.45 ▲0.96
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.1995.77 ▼6.9542.89 ▼1.48

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: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 135× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyclone-demo-importer/themes/school-of-education/sections/pricing.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cyclone-demo-importer/themes/business-conference/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cyclone-demo-importer/themes/next-level-blog-lite/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyclone-demo-importer/themes/econsulting-agency-lite/customizer/options-testimonials.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cyclone-demo-importer/themes/artistic-blog-pro/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cyclone-demo-importer/themes/medical-business/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyclone-demo-importer/themes/econsulting-agency-lite/sections/partners.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cyclone-demo-importer/themes/news-24x7/demo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyclone-demo-importer/themes/econsulting-agency-lite/sections/banner.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyclone-demo-importer/themes/school-of-education/customizer/options-counter.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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: demo data, one click demo import

cyclone-demo-importer/index.php 92% from 13 tests

Analyzing the main PHP file in "Cyclone Demo Importer" version 2.9.53
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cyclone-demo-importer.php" instead of "index.php")

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
There were no executable files found in this plugin286,606 lines of code in 203 files:
LanguageFilesBlank linesComment linesLines of code
XML683,9953,210264,627
PHP1332,82028721,687
CSS2593292

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions509
▷ Named functions47693.52%
▷ Anonymous functions336.48%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/pro-tag.png8.35KB4.13KB▼ 50.57%