68% ctl-behance-importer-lite

Code Review | CTL Behance Importer Lite

WordPress plugin CTL Behance Importer Lite scored68%from 54 tests.

About plugin

  • Plugin page: ctl-behance-impor...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2016
  • Latest release: Sep 19, 2016
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: codethislab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /730 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.41MB] [CPU: ▼0.14ms] Passed 4 tests

Server-side resources used by CTL Behance Importer Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4243.61 ▲4.18
Dashboard /wp-admin3.79 ▲0.4553.58 ▲1.30
Posts /wp-admin/edit.php3.84 ▲0.4557.11 ▲6.37
Add New Post /wp-admin/post-new.php6.31 ▲0.3897.48 ▼11.50
Media Library /wp-admin/upload.php3.65 ▲0.3842.47 ▲5.45
Documentation /wp-admin/admin.php?page=ctl-behance-importer-lite-documentation3.6238.37
Settings /wp-admin/admin.php?page=ctl-behance-importer-lite-settings3.6238.39
Galleries /wp-admin/admin.php?page=ctl-behance-importer-lite-manage-galleries3.6237.81
Works /wp-admin/admin.php?page=ctl-behance-importer-lite-manage-works3.6240.88
About us /wp-admin/admin.php?page=ctl-behance-importer-lite-about-us3.6236.00

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 43 new files
Database: 2 new tables, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for CTL Behance Importer Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.34 ▲0.121.72 ▼0.0439.72 ▼0.54
Dashboard /wp-admin2,250 ▲695.72 ▲0.0286.76 ▼18.1640.96 ▼7.18
Posts /wp-admin/edit.php2,162 ▲622.24 ▲0.2336.23 ▼3.4933.07 ▼4.36
Add New Post /wp-admin/post-new.php1,578 ▲5022.66 ▼0.28670.97 ▼58.7851.36 ▼9.22
Media Library /wp-admin/upload.php1,455 ▲524.32 ▲0.08103.22 ▲3.3246.19 ▲2.21
Documentation /wp-admin/admin.php?page=ctl-behance-importer-lite-documentation1,3151.8027.9754.55
Settings /wp-admin/admin.php?page=ctl-behance-importer-lite-settings1,1341.9327.7537.86
Galleries /wp-admin/admin.php?page=ctl-behance-importer-lite-manage-galleries9411.8323.9734.09
Works /wp-admin/admin.php?page=ctl-behance-importer-lite-manage-works9471.8327.5036.69
About us /wp-admin/admin.php?page=ctl-behance-importer-lite-about-us2,19418.43356.92110.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_ctl_be_imp_lite_settings
    • wp_ctl_be_imp_lite_works
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • ctl-behance-importer-lite-version
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=ctl-behance-importer-lite-page-work
    • > Notice in wp-content/plugins/ctl-behance-importer-lite/classes/CCTLBehanceImporterLite.php+1185
    Undefined offset: 0
    • > GET request to /wp-admin/admin.php?page=ctl-behance-importer-lite-page-work
    • > Notice in wp-content/plugins/ctl-behance-importer-lite/classes/CCTLBehanceImporterLite.php+1185
    Trying to get property 'name' of non-object

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=ctl-behance-importer-lite-about-us
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=ctl-behance-importer-lite-about-us
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=ctl-behance-importer-lite-about-us
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/CxzjCMQABR5.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=ctl-behance-importer-lite-about-us
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/CxzjCMQABR5.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

ctl-behance-importer-lite/ctl-behance-importer-lite.php Passed 13 tests

The entry point to "CTL Behance Importer Lite" version 1.0 is a PHP file that has certain tags in its header comment area
33 characters long description:
Behance Importer Wordpress Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,424 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PO File1123131298

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity33.50
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods11.10%
▷ Public methods4650.55%
▷ Protected methods3437.36%
▷ Private methods1112.09%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 1.98MB with 1.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/traffic_light_circle_yellow.png4.76KB1.41KB▼ 70.51%
images/traffic_light_circle_green.png2.32KB1.32KB▼ 43.33%
images/shortcode_general.png103.70KB39.27KB▼ 62.13%
images/logo_white.png10.97KB5.43KB▼ 50.49%
images/page_works.png242.11KB82.75KB▼ 65.82%