10% weebly-importer

Code Review | Weebly Importer Lite

WordPress plugin Weebly Importer Lite scored10%from 54 tests.

About plugin

  • Plugin page: weebly-importer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.0
  • WordPress version: 6.3.1
  • First release: Oct 16, 2014
  • Latest release: Oct 19, 2014
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: geca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,637 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/weebly-importer/class-weebly_crawler_lite.php+5
    Constant STATUS_DONE already defined

Server metrics [RAM: ▼1.80MB] [CPU: ▼51.80ms] Passed 4 tests

Server-side resources used by Weebly Importer Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.275.68 ▼32.57
Dashboard /wp-admin2.21 ▼1.096.74 ▼43.33
Posts /wp-admin/edit.php2.21 ▼1.156.95 ▼44.17
Add New Post /wp-admin/post-new.php2.21 ▼3.686.13 ▼87.14
Media Library /wp-admin/upload.php2.21 ▼1.025.63 ▼25.69

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Weebly Importer Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.57 ▼0.831.90 ▲0.1245.22 ▲4.75
Dashboard /wp-admin2,205 ▲175.85 ▼0.06101.48 ▼3.4137.10 ▼8.62
Posts /wp-admin/edit.php2,091 ▲21.99 ▼0.0440.10 ▲1.0636.41 ▲3.14
Add New Post /wp-admin/post-new.php1,516 ▲217.76 ▲0.15681.16 ▼0.4653.58 ▼0.97
Media Library /wp-admin/upload.php1,387 ▼14.17 ▼0.0498.09 ▼1.7840.88 ▼2.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/weebly-importer/class-weebly_crawler_lite.php+5
    Constant STATUS_DONE already defined
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/weebly-importer/weebly-importer-lite.php on line 25
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/weebly-importer/weebly-importer-lite.php on line 25
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/weebly-importer/weebly-importer-lite.php on line 25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

weebly-importer/weebly-importer-lite.php 85% from 13 tests

"Weebly Importer Lite" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("weebly-importer.php" instead of "weebly-importer-lite.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
Success! There were no dangerous files found in this plugin459 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP210868365
JavaScript115294

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.00
▷ Minimum class complexity9.00
▷ Maximum class complexity13.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin