84% theme-blvd-importer

Code Review | Theme Blvd Importer

WordPress plugin Theme Blvd Importer scored84%from 54 tests.

About plugin

  • Plugin page: theme-blvd-importer
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Feb 20, 2018
  • Number of updates: 13
  • Update frequency: every 68.0 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /12,667 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.00MB] [CPU: ▼6.58ms] Passed 4 tests

This is a short check of server-side resources used by Theme Blvd Importer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0133.86 ▼6.74
Dashboard /wp-admin3.31 ▲0.0142.90 ▼4.17
Posts /wp-admin/edit.php3.36 ▲0.0045.27 ▼6.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.75 ▼8.96
Media Library /wp-admin/upload.php3.23 ▲0.0033.40 ▲1.66

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Theme Blvd Importer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7714.47 ▲0.171.61 ▼0.3539.66 ▼7.47
Dashboard /wp-admin2,218 ▲364.84 ▼1.06109.34 ▼0.6436.37 ▼11.46
Posts /wp-admin/edit.php2,100 ▲111.99 ▼0.0641.06 ▼2.9335.51 ▼3.82
Add New Post /wp-admin/post-new.php1,545 ▲323.31 ▲4.80666.06 ▲27.2355.11 ▲2.38
Media Library /wp-admin/upload.php1,397 ▲94.30 ▲0.2197.61 ▲1.2143.02 ▼0.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
Even though everything seems fine, this is not 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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/theme-blvd-importer/inc/options-export.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/theme-blvd-importer/tb-importer.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Theme_Blvd_Export' not found in wp-content/plugins/theme-blvd-importer/inc/class-tb-export-options.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

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
4 plugin tags: demo, data, import, export

theme-blvd-importer/tb-importer.php 92% from 13 tests

The main file in "Theme Blvd Importer" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("theme-blvd-importer.php" instead of "tb-importer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin536 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6224353509
JavaScript19927

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity24.00
▷ Minimum class complexity3.00
▷ Maximum class complexity70.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods2180.77%
▷ Protected methods415.38%
▷ Private methods13.85%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
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
There are no PNG files in this plugin