84% olive-one-click-demo-import

Code Review | Olive One Click Demo Import

WordPress plugin Olive One Click Demo Import scored84%from 54 tests.

About plugin

  • Plugin page: olive-one-click-d...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 10, 2022
  • Latest release: Oct 9, 2023
  • Number of updates: 10
  • Update frequency: every 33.3 days
  • Top authors: olivethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /9,634 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.16ms] Passed 4 tests

An overview of server-side resources used by Olive One Click Demo Import
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1245.62 ▲1.67
Dashboard /wp-admin3.42 ▲0.1249.01 ▼3.40
Posts /wp-admin/edit.php3.54 ▲0.1855.20 ▼6.66
Add New Post /wp-admin/post-new.php6.02 ▲0.14103.51 ▲3.77
Media Library /wp-admin/upload.php3.35 ▲0.1242.12 ▲6.23
Olive Importer /wp-admin/themes.php?page=olive-one-click-demo-import3.3338.70

Server storage [IO: ▲0.96MB] [DB: ▲0.02MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 219 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Olive One Click Demo Import
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.36 ▼0.341.87 ▼0.1642.89 ▼1.35
Dashboard /wp-admin2,196 ▲225.52 ▼0.0590.29 ▼0.0437.59 ▼2.93
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0340.01 ▼4.1437.16 ▼3.56
Add New Post /wp-admin/post-new.php1,531 ▲323.03 ▼0.11656.83 ▼33.0553.52 ▲2.58
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.1596.76 ▼11.3544.06 ▼3.27
Olive Importer /wp-admin/themes.php?page=olive-one-click-demo-import1,3648.84182.1254.08

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 162× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/olive-one-click-demo-import/inc/lib/WordPress-Importer/vendor/monolog/monolog/tests/Monolog/Handler/GroupHandlerTest.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/olive-one-click-demo-import/inc/lib/WordPress-Importer/vendor/monolog/monolog/tests/Monolog/Handler/DoctrineCouchDBHandlerTest.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/olive-one-click-demo-import/inc/lib/WordPress-Importer/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/olive-one-click-demo-import/inc/lib/WordPress-Importer/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerLegacyTest.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Processor\\MemoryProcessor' not found in wp-content/plugins/olive-one-click-demo-import/inc/lib/WordPress-Importer/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/olive-one-click-demo-import/inc/lib/WordPress-Importer/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'ProteusThemes\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/olive-one-click-demo-import/inc/lib/WordPress-Importer/vendor/proteusthemes/wp-content-importer-v2/src/Importer.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/olive-one-click-demo-import/inc/lib/WordPress-Importer/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/olive-one-click-demo-import/inc/lib/WordPress-Importer/vendor/monolog/monolog/tests/Monolog/RegistryTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/olive-one-click-demo-import/inc/lib/WordPress-Importer/vendor/psr/log/Psr/Log/NullLogger.php:13

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: import, data, demo, content, settings...

olive-one-click-demo-import/olive-one-click-demo-import.php Passed 13 tests

The main PHP file in "Olive One Click Demo Import" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
One Click Demo Import for WordPress sites. Specially works for FSE Themes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected18,342 lines of code in 210 files:
LanguageFilesBlank linesComment linesLines of code
PHP1994,1797,86017,442
Markdown61910667
JSON200214
XML13016
CSS1002
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.94
▷ Minimum class complexity1.00
▷ Maximum class complexity289.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces13
Interfaces5
Traits2
Classes199
▷ Abstract classes73.52%
▷ Concrete classes19296.48%
▷ Final classes00.00%
Methods1,278
▷ Static methods413.21%
▷ Public methods96075.12%
▷ Protected methods24118.86%
▷ Private methods776.03%
Functions82
▷ Named functions1821.95%
▷ Anonymous functions6478.05%
Constants62
▷ Global constants46.45%
▷ Class constants5893.55%
▷ Public constants58100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected